summaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2019-03-20 10:34:57 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-03-25 05:53:31 +0100
commitcdb87d954804cdba89ed7cd10f28efa5ca5e1f1c (patch)
tree0b0f1ab63de4f2df3f6667ca2c68cc52e16b8329 /src/node.cc
parentb4f58c2cafba120de81fb806b593464089b96d1c (diff)
downloadandroid-node-v8-cdb87d954804cdba89ed7cd10f28efa5ca5e1f1c.tar.gz
android-node-v8-cdb87d954804cdba89ed7cd10f28efa5ca5e1f1c.tar.bz2
android-node-v8-cdb87d954804cdba89ed7cd10f28efa5ca5e1f1c.zip
src: guard exit label when inspector disabled
Currently, when configured --without-inspector the following warning will be generated: ../src/node.cc:859:1: warning: unused label 'exit' [-Wunused-label] exit: This commit adds a guard to exclude the label when there is no inspector support. PR-URL: https://github.com/nodejs/node/pull/26801 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index a67c30bb01..2d23ce6755 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -856,7 +856,9 @@ inline int StartNodeWithIsolate(Isolate* isolate,
WaitForInspectorDisconnect(&env);
+#if HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
exit:
+#endif
env.set_can_call_into_js(false);
env.stop_sub_worker_contexts();
uv_tty_reset_mode();