src: guard exit label when inspector disabled · nodejs/node@220f67c (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 220f67c

danbevtargos

authored and

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: #26801Reviewed-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

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -842,7 +842,9 @@ inline int StartNodeWithIsolate(Isolate* isolate,
842 842
843 843 WaitForInspectorDisconnect(&env);
844 844
845 +#if HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
845 846 exit:
847 +#endif
846 848 env.set_can_call_into_js(false);
847 849 env.stop_sub_worker_contexts();
848 850 uv_tty_reset_mode();