From f9bc83557d2761372c78da9f8870b759dd9ea908 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 10 Apr 2017 15:40:34 +0200 Subject: [PATCH] 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 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: James M Snell --- src/node_debug_options.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_debug_options.cc b/src/node_debug_options.cc index d559ed6ec9fecb..b4a819e096f68a 100644 --- a/src/node_debug_options.cc +++ b/src/node_debug_options.cc @@ -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() == ']')