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>
This commit is contained in:
parent
a4b8000029
commit
5eb4ec090d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user