diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-06-13 11:03:53 +0200 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-06-16 12:28:27 +0800 |
commit | 2b7dfbcdbe2ce32be7d3bd5ba007ad447c75ae8f (patch) | |
tree | bb8adc3539500e3d2316349699e6beb1dc4d6818 | |
parent | 7561a38ccd7cc6b543a81a62fdbd455f600f684e (diff) | |
download | android-node-v8-2b7dfbcdbe2ce32be7d3bd5ba007ad447c75ae8f.tar.gz android-node-v8-2b7dfbcdbe2ce32be7d3bd5ba007ad447c75ae8f.tar.bz2 android-node-v8-2b7dfbcdbe2ce32be7d3bd5ba007ad447c75ae8f.zip |
src: fix compiler warning in node_worker.cc
Currently, when configuring --without-ssl the following compiler warning
is generated:
../src/node_worker.cc:192:10:
warning: unused variable 'inspector_started' [-Wunused-variable]
bool inspector_started = false;
^
1 warning generated.
This commit adds a macro guard to the variable to avoid the warning.
PR-URL: https://github.com/nodejs/node/pull/28198
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | src/node_worker.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc index a98b810659..c05e3a9c14 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -189,7 +189,9 @@ void Worker::Run() { Locker locker(isolate_); Isolate::Scope isolate_scope(isolate_); SealHandleScope outer_seal(isolate_); +#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR bool inspector_started = false; +#endif DeleteFnPtr<Environment, FreeEnvironment> env_; OnScopeLeave cleanup_env([&]() { |