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: https://github.com/nodejs/node/pull/7258
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Anna Henningsen 2016-05-31 19:28:05 +02:00
parent 05de4d78a6
commit 0c73c9fece
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -3359,11 +3359,15 @@ static bool ParseDebugOpt(const char* arg) {
PrintHelp();
exit(12);
}
#if HAVE_INSPECTOR
if (use_inspector) {
inspector_port = port_int;
} else {
#endif
debug_port = port_int;
#if HAVE_INSPECTOR
}
#endif
}
return true;