Skip to content

Commit 94ddab0

Browse files
danbevevanlucas
authored andcommitted
src: guard default_inspector_port
When configuring and building --without-ssl the following warning is reported: ../src/node_debug_options.cc:12:11: warning: unused variable 'default_inspector_port' [-Wunused-const-variable] const int default_inspector_port = 9229; The commit adds a HAVE_INSPECTOR guard to this constant. PR-URL: #12303 Reviewed-By: cjihrig - Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 43a39c6 commit 94ddab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_debug_options.cc

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace node {
99

1010
namespace {
1111
const int default_debugger_port = 5858;
12+
#if HAVE_INSPECTOR
1213
const int default_inspector_port = 9229;
14+
#endif // HAVE_INSPECTOR
1315

1416
inline std::string remove_brackets(const std::string& host) {
1517
if (!host.empty() && host.front() == '[' && host.back() == ']')

0 commit comments

Comments
 (0)