From 7755f950149f644ac407f54800f712cbafbc0b94 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 17 Jan 2018 15:32:47 +0100 Subject: [PATCH 1/2] src: fix -Wunused-but-set-variable warnings --- src/node_file.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index c9bbea1ee5f621..a5abd6005efe5c 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -539,7 +539,6 @@ static void InternalModuleStat(const FunctionCallbackInfo& args) { static void Stat(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); - Local context = env->context(); CHECK_GE(args.Length(), 1); @@ -563,7 +562,6 @@ static void Stat(const FunctionCallbackInfo& args) { static void LStat(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); - Local context = env->context(); CHECK_GE(args.Length(), 1); From 41ba980dc7f019a2d3e11a9969cef6a1eeca898d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 17 Jan 2018 15:32:47 +0100 Subject: [PATCH 2/2] src: fix -Wimplicit-fallthrough warning --- src/node_i18n.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_i18n.cc b/src/node_i18n.cc index 041eda94f3bdd5..71ae6a000336e2 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -788,7 +788,8 @@ static int GetColumnWidth(UChar32 codepoint, if (ambiguous_as_full_width) { return 2; } - // Fall through if ambiguous_as_full_width if false. + // If ambiguous_as_full_width is false: + // Fall through case U_EA_NEUTRAL: if (u_hasBinaryProperty(codepoint, UCHAR_EMOJI_PRESENTATION)) { return 2;