diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-04-10 15:40:34 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-04-12 12:54:10 +0200 |
commit | f9bc83557d2761372c78da9f8870b759dd9ea908 (patch) | |
tree | 583da7fe1c6d72e0756a5e388c844cf1ec3d9d24 /src/node_debug_options.cc | |
parent | a235ccd1685b96089ca2e8c175bb39e1ef59afbd (diff) | |
download | android-node-v8-f9bc83557d2761372c78da9f8870b759dd9ea908.tar.gz android-node-v8-f9bc83557d2761372c78da9f8870b759dd9ea908.tar.bz2 android-node-v8-f9bc83557d2761372c78da9f8870b759dd9ea908.zip |
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>
Diffstat (limited to 'src/node_debug_options.cc')
-rw-r--r-- | src/node_debug_options.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_debug_options.cc b/src/node_debug_options.cc index d559ed6ec9..b4a819e096 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() == ']') |