Skip to content

Commit 220f67c

Browse files
danbevtargos
authored andcommitted
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: #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>
1 parent 54753f2 commit 220f67c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node.cc

+2
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,9 @@ inline int StartNodeWithIsolate(Isolate* isolate,
842842

843843
WaitForInspectorDisconnect(&env);
844844

845+
#if HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
845846
exit:
847+
#endif
846848
env.set_can_call_into_js(false);
847849
env.stop_sub_worker_contexts();
848850
uv_tty_reset_mode();

0 commit comments

Comments
 (0)