Skip to content

Commit 063fd18

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 <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 2d4775a commit 063fd18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/node.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,8 +3633,10 @@ static void ParseArgs(int* argc,
36333633
const char** new_v8_argv = new const char*[nargs];
36343634
const char** new_argv = new const char*[nargs];
36353635
const char** local_preload_modules = new const char*[nargs];
3636+
#if HAVE_OPENSSL
36363637
bool use_bundled_ca = false;
36373638
bool use_openssl_ca = false;
3639+
#endif // HAVE_OPENSSL
36383640

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

0 commit comments

Comments
 (0)