Skip to content

Commit 5eb4ec0

Browse files
committed
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 <[email protected]>
1 parent a4b8000 commit 5eb4ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_config.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ using v8::ReadOnly;
2929
void InitConfig(Local<Object> target,
3030
Local<Value> unused,
3131
Local<Context> context) {
32+
#ifdef NODE_HAVE_I18N_SUPPORT
3233
Environment* env = Environment::GetCurrent(context);
3334

34-
#ifdef NODE_HAVE_I18N_SUPPORT
3535
READONLY_BOOLEAN_PROPERTY("hasIntl");
3636

3737
#ifdef NODE_HAVE_SMALL_ICU

0 commit comments

Comments
 (0)