summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-04-22 22:42:16 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-04-22 23:01:44 +0200
commit5eb4ec090d70a848e2ae98bd526634bf9d1bf08c (patch)
treec2460f813e807a06b5baff9f1fce84b5a8a3f0cf
parenta4b80000293c6874e68ba11ca5ba8e4969170a86 (diff)
downloadandroid-node-v8-5eb4ec090d70a848e2ae98bd526634bf9d1bf08c.tar.gz
android-node-v8-5eb4ec090d70a848e2ae98bd526634bf9d1bf08c.tar.bz2
android-node-v8-5eb4ec090d70a848e2ae98bd526634bf9d1bf08c.zip
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 <jasnell@gmail.com>
-rw-r--r--src/node_config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index 9ffea0beda..408f1d20a3 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -29,9 +29,9 @@ using v8::ReadOnly;
void InitConfig(Local<Object> target,
Local<Value> unused,
Local<Context> 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