Skip to content

Commit 2b29cea

Browse files
danbevMylesBorins
authored andcommitted
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 Backport-PR-URL: #17783 PR-URL: #12302 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 758dc81 commit 2b29cea

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
@@ -3887,8 +3887,10 @@ static void ParseArgs(int* argc,
38873887
const char** new_exec_argv = new const char*[nargs];
38883888
const char** new_v8_argv = new const char*[nargs];
38893889
const char** new_argv = new const char*[nargs];
3890+
#if HAVE_OPENSSL
38903891
bool use_bundled_ca = false;
38913892
bool use_openssl_ca = false;
3893+
#endif // HAVE_INSPECTOR
38923894

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

0 commit comments

Comments
 (0)