Skip to content
Permalink
Browse files

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: #6351
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
bnoordhuis committed Apr 22, 2016
1 parent a4b8000 commit 5eb4ec090d70a848e2ae98bd526634bf9d1bf08c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 5eb4ec0

Please sign in to comment.
You can’t perform that action at this time.