Skip to content

Commit de168b4

Browse files
committed
src: guard bundled_ca/openssl_ca with HAVE_OPENSSL
Currently, the following warning will be reported when configuring without-ssl: ../src/node.cc:3653:8: warning: unused variable 'use_bundled_ca' [-Wunused-variable] bool use_bundled_ca = false; ^ ../src/node.cc:3654:8: warning: unused variable 'use_openssl_ca' [-Wunused-variable] bool use_openssl_ca = false; ^ I missed this when working on commit 8a7db9d ("src: add --use-bundled-ca --use-openssl-ca check"). Refs: #12087 PR-URL: #12302 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent f9bc835 commit de168b4

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
@@ -3647,8 +3647,10 @@ static void ParseArgs(int* argc,
36473647
const char** new_exec_argv = new const char*[nargs];
36483648
const char** new_v8_argv = new const char*[nargs];
36493649
const char** new_argv = new const char*[nargs];
3650+
#if HAVE_OPENSSL
36503651
bool use_bundled_ca = false;
36513652
bool use_openssl_ca = false;
3653+
#endif // HAVE_INSPECTOR
36523654

36533655
for (unsigned int i = 0; i < nargs; ++i) {
36543656
new_exec_argv[i] = nullptr;

0 commit comments

Comments
 (0)