diff options
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 05c77f1..4deacc1 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -37,13 +37,17 @@ fi dnl The options we'll try to enable. dnl NB: Kept somewhat in sync with gdbsupport/warnings.m4. -build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ --Wpointer-sign \ --Wno-unused -Wunused-value -Wunused-function \ --Wno-switch -Wno-char-subscripts -Wmissing-prototypes +build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith +-Wno-unused -Wunused-value -Wunused-function +-Wno-switch -Wno-char-subscripts +-Wempty-body -Wunused-but-set-parameter -Wno-error=maybe-uninitialized --Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ --Wold-style-declaration -Wold-style-definition" +-Wmissing-declarations +-Wmissing-prototypes +-Wdeclaration-after-statement -Wmissing-parameter-type +-Wpointer-sign +-Wold-style-declaration -Wold-style-definition +" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. |