From: Simon Marchi Date: Tue, 23 Apr 2024 14:43:27 +0000 (+0000) Subject: gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extension X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fusers%2Fsimark%2Ftry-remove-vla;p=thirdparty%2Fbinutils-gdb.git gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extension Now that all known uses of VLAs within GDB are removed, remove the `-Wno-vla-cxx-extension` (which was used to silence clang warnings) and add `-Wvla`, such that any use of a VLA will trigger a warning. Change-Id: I69a8d7f93f973743165b0ba46f9c2ea8adb89025 --- diff --git a/gdb/configure b/gdb/configure index c3d5cf7ed63..232cdb96521 100755 --- a/gdb/configure +++ b/gdb/configure @@ -31179,7 +31179,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wredundant-move \ -Wmissing-declarations \ -Wstrict-null-sentinel \ --Wno-vla-cxx-extension \ +-Wvla \ " # The -Wmissing-prototypes flag will be accepted by GCC, but results diff --git a/gdbserver/configure b/gdbserver/configure index 026d250cc73..71d0c2fd1bc 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -13706,7 +13706,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wredundant-move \ -Wmissing-declarations \ -Wstrict-null-sentinel \ --Wno-vla-cxx-extension \ +-Wvla \ " # The -Wmissing-prototypes flag will be accepted by GCC, but results diff --git a/gdbsupport/configure b/gdbsupport/configure index ae991250ce4..bd6fc18148e 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -14179,7 +14179,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wredundant-move \ -Wmissing-declarations \ -Wstrict-null-sentinel \ --Wno-vla-cxx-extension \ +-Wvla \ " # The -Wmissing-prototypes flag will be accepted by GCC, but results diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index d12bccbd3fb..2dadd7f99fd 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -52,7 +52,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wredundant-move \ -Wmissing-declarations \ -Wstrict-null-sentinel \ --Wno-vla-cxx-extension \ +-Wvla \ " # The -Wmissing-prototypes flag will be accepted by GCC, but results