sim: use -Wno-error=maybe-uninitialized
authorMike Frysinger <vapier@gentoo.org>
Wed, 30 Jun 2021 00:33:14 +0000 (20:33 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jun 2021 02:22:17 +0000 (22:22 -0400)
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.

sim/ChangeLog
sim/configure
sim/m4/sim_ac_option_warnings.m4

index d63e656cb33a991a678f45cee8c8d200c9243aaf..959d3582da19c00c8780d53f706bbb98918f0828 100644 (file)
@@ -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>
 
        * arch-subdir.mk.in: Move TERMCAP and READLINE variables from
index 34cd1c9e8a2453b1d1687fee92221d742ef22e7e..3120006e6d563c64ce768a41a6bfda93632ba0a2 100755 (executable)
@@ -14588,6 +14588,7 @@ 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"
 
index 5a0fe304e9ce92f590b6ef737763878aaea9ffbc..05c77f1b92de6a8559a56d32d5aa2e907fa20744 100644 (file)
@@ -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"
 
This page took 0.032937 seconds and 4 git commands to generate.