Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38d36e3

Browse filesBrowse files
addaleaxFishrock123
authored andcommitted
src: fix --without-inspector build
`use_inspector` is not available if `HAVE_INSPECTOR` is false. Before this commit, one usage of it would show up as an undeclared identifier (introduced in a766ebf). PR-URL: #7258 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 7da8a41 commit 38d36e3
Copy full SHA for 38d36e3

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,11 +3443,15 @@ static bool ParseDebugOpt(const char* arg) {
34433443
PrintHelp();
34443444
exit(12);
34453445
}
3446+
#if HAVE_INSPECTOR
34463447
if (use_inspector) {
34473448
inspector_port = port_int;
34483449
} else {
3450+
#endif
34493451
debug_port = port_int;
3452+
#if HAVE_INSPECTOR
34503453
}
3454+
#endif
34513455
}
34523456

34533457
return true;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.