From bb5cd94cad82ff3f5d7643f4df563707d98e8a16 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 17 Mar 2022 18:55:31 +1300 Subject: [PATCH] Fix GCC warning from recent -intgosize change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modules/go.cxx:247:10: warning: variable ‘display_help’ set but not used [-Wunused-but-set-variable] 247 | bool display_help = false; --- Source/Modules/go.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Modules/go.cxx b/Source/Modules/go.cxx index 4869eec17..a229c4111 100644 --- a/Source/Modules/go.cxx +++ b/Source/Modules/go.cxx @@ -244,7 +244,6 @@ private: virtual void main(int argc, char *argv[]) { SWIG_library_directory("go"); - bool display_help = false; bool saw_nocgo_flag = false; // Process command line options. @@ -329,7 +328,6 @@ private: Swig_arg_error(); } } else if (strcmp(argv[i], "-help") == 0) { - display_help = true; Printf(stdout, "%s\n", usage); } }