diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-29 20:33:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-29 22:22:17 -0400 |
commit | 3167423f079e08f530df30eccad2a467c8ad5014 (patch) | |
tree | 062eb9548cbb6daba4c5ddb20f0959c1f96ca9f8 /sim/m4 | |
parent | 999b474b8aa49f522984b2f4c1d954a2229882b9 (diff) | |
download | gdb-3167423f079e08f530df30eccad2a467c8ad5014.zip gdb-3167423f079e08f530df30eccad2a467c8ad5014.tar.gz gdb-3167423f079e08f530df30eccad2a467c8ad5014.tar.bz2 |
sim: use -Wno-error=maybe-uninitialized
We have some code tripping this warning, but it depends on the gcc
version & optimization levels. We've added some hints to the code
so some versions of gcc work better, but still not all. Let's just
disable the warning like gdb does.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 5a0fe30..05c77f1 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -35,10 +35,13 @@ if test "${ERROR_ON_WARNING}" = yes ; then WERROR_CFLAGS="-Werror" 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 +-Wno-error=maybe-uninitialized -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ -Wold-style-declaration -Wold-style-definition" |