From 220f67c6cea96ee77681239ec7e2558fff949313 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 20 Mar 2019 10:34:57 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Yongsheng Zhang --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 1ce42be0b1d614..b90dbbfb5f3709 100644 --- a/src/node.cc +++ b/src/node.cc @@ -842,7 +842,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();