diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-22 22:42:16 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-22 23:01:44 +0200 |
commit | 5eb4ec090d70a848e2ae98bd526634bf9d1bf08c (patch) | |
tree | c2460f813e807a06b5baff9f1fce84b5a8a3f0cf /src/node_config.cc | |
parent | a4b80000293c6874e68ba11ca5ba8e4969170a86 (diff) | |
download | node-new-5eb4ec090d70a848e2ae98bd526634bf9d1bf08c.tar.gz |
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>
Diffstat (limited to 'src/node_config.cc')
-rw-r--r-- | src/node_config.cc | 2 |
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 |