mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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 8a7db9d4b5 ("src: add
--use-bundled-ca --use-openssl-ca check").
Refs: https://github.com/nodejs/node/pull/12087
PR-URL: https://github.com/nodejs/node/pull/12302
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
f9bc83557d
commit
de168b4b4a
1 file changed
+2
@@ -3647,8 +3647,10 @@ static void ParseArgs(int* argc,
|
||||
const char** new_exec_argv = new const char*[nargs];
|
||||
const char** new_v8_argv = new const char*[nargs];
|
||||
const char** new_argv = new const char*[nargs];
|
||||
#if HAVE_OPENSSL
|
||||
bool use_bundled_ca = false;
|
||||
bool use_openssl_ca = false;
|
||||
#endif // HAVE_INSPECTOR
|
||||
|
||||
for (unsigned int i = 0; i < nargs; ++i) {
|
||||
new_exec_argv[i] = nullptr;
|
||||
|
||||
Reference in new issue
Block a user