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.
+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
 
 -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"
 
 
   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"