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.
This commit is contained in:
parent
999b474b8a
commit
3167423f07
3 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* m4/sim_ac_option_warnings.m4: Add -Wno-error=maybe-uninitialized.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-27 Mike Frysinger <vapier@gentoo.org>
|
2021-06-27 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch-subdir.mk.in: Move TERMCAP and READLINE variables from
|
* arch-subdir.mk.in: Move TERMCAP and READLINE variables from
|
||||||
|
|
1
sim/configure
vendored
1
sim/configure
vendored
|
@ -14588,6 +14588,7 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
||||||
-Wpointer-sign \
|
-Wpointer-sign \
|
||||||
-Wno-unused -Wunused-value -Wunused-function \
|
-Wno-unused -Wunused-value -Wunused-function \
|
||||||
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
|
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
|
||||||
|
-Wno-error=maybe-uninitialized
|
||||||
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
|
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
|
||||||
-Wold-style-declaration -Wold-style-definition"
|
-Wold-style-declaration -Wold-style-definition"
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,13 @@ if test "${ERROR_ON_WARNING}" = yes ; then
|
||||||
WERROR_CFLAGS="-Werror"
|
WERROR_CFLAGS="-Werror"
|
||||||
fi
|
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 \
|
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
||||||
-Wpointer-sign \
|
-Wpointer-sign \
|
||||||
-Wno-unused -Wunused-value -Wunused-function \
|
-Wno-unused -Wunused-value -Wunused-function \
|
||||||
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
|
-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
|
||||||
|
-Wno-error=maybe-uninitialized
|
||||||
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
|
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
|
||||||
-Wold-style-declaration -Wold-style-definition"
|
-Wold-style-declaration -Wold-style-definition"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue