Skip to content

Commit cdb87d9

Browse files
committed
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 b4f58c2 commit cdb87d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,9 @@ inline int StartNodeWithIsolate(Isolate* isolate,
856856

857857
WaitForInspectorDisconnect(&env);
858858

859+
#if HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
859860
exit:
861+
#endif
860862
env.set_can_call_into_js(false);
861863
env.stop_sub_worker_contexts();
862864
uv_tty_reset_mode();

0 commit comments

Comments
 (0)