From 1b381473e8bfe08863d1b046c9bc0479df7a956e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 10 Apr 2017 15:13:24 +0200 Subject: [PATCH] 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 8a7db9d4b5798679045d7a4f6f62243ba4be5b8c ("src: add --use-bundled-ca --use-openssl-ca check"). Refs: https://github.com/nodejs/node/pull/12087 Backport-PR-URL: https://github.com/nodejs/node/pull/17783 PR-URL: https://github.com/nodejs/node/pull/12302 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 9227c15fae8837..b36c0c9137c661 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3887,8 +3887,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;