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:
parent
c7af8eabb3
commit
bb5cd94cad
1 changed files with 0 additions and 2 deletions
|
|
@ -244,7 +244,6 @@ private:
|
||||||
virtual void main(int argc, char *argv[]) {
|
virtual void main(int argc, char *argv[]) {
|
||||||
|
|
||||||
SWIG_library_directory("go");
|
SWIG_library_directory("go");
|
||||||
bool display_help = false;
|
|
||||||
bool saw_nocgo_flag = false;
|
bool saw_nocgo_flag = false;
|
||||||
|
|
||||||
// Process command line options.
|
// Process command line options.
|
||||||
|
|
@ -329,7 +328,6 @@ private:
|
||||||
Swig_arg_error();
|
Swig_arg_error();
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[i], "-help") == 0) {
|
} else if (strcmp(argv[i], "-help") == 0) {
|
||||||
display_help = true;
|
|
||||||
Printf(stdout, "%s\n", usage);
|
Printf(stdout, "%s\n", usage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue