mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/nodejs/node/pull/12303 Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
a235ccd168
commit
f9bc83557d
1 file changed
+2
@@ -9,7 +9,9 @@ namespace node {
|
||||
|
||||
namespace {
|
||||
const int default_debugger_port = 5858;
|
||||
#if HAVE_INSPECTOR
|
||||
const int default_inspector_port = 9229;
|
||||
#endif // HAVE_INSPECTOR
|
||||
|
||||
inline std::string remove_brackets(const std::string& host) {
|
||||
if (!host.empty() && host.front() == '[' && host.back() == ']')
|
||||
|
||||
Reference in new issue
Block a user