Fix GCC warning from recent -intgosize change

Modules/go.cxx:247:10: warning: variable ‘display_help’ set but not used [-Wunused-but-set-variable]
  247 |     bool display_help = false;
This commit is contained in:
Olly Betts 2022-03-17 18:55:31 +13:00
commit bb5cd94cad

View file

@ -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);
}
}