From 5eb4ec090d70a848e2ae98bd526634bf9d1bf08c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 22 Apr 2016 22:42:16 +0200 Subject: [PATCH] src: squelch -Wunused-variable in non-icu builds Silence the following compiler warning when building without ICU: ../src/node_config.cc:32:16: warning: unused variable 'env' [-Wunused-variable] Environment* env = Environment::GetCurrent(context); PR-URL: https://github.com/nodejs/node/pull/6351 Reviewed-By: James M Snell --- src/node_config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_config.cc b/src/node_config.cc index 9ffea0bedad..408f1d20a3e 100644 --- a/src/node_config.cc +++ b/src/node_config.cc @@ -29,9 +29,9 @@ using v8::ReadOnly; void InitConfig(Local target, Local unused, Local context) { +#ifdef NODE_HAVE_I18N_SUPPORT Environment* env = Environment::GetCurrent(context); -#ifdef NODE_HAVE_I18N_SUPPORT READONLY_BOOLEAN_PROPERTY("hasIntl"); #ifdef NODE_HAVE_SMALL_ICU