diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-04-23 14:43:27 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-04-23 20:52:54 +0000 |
commit | 62abb86c61a53a0a3b6b66a53bf0c5532710692b (patch) | |
tree | 2d7340ab3ef988614e71e05ff096b869915636d7 | |
parent | 22813df1897ce505665b2fb19f07c6d44b9019b0 (diff) | |
download | binutils-62abb86c61a53a0a3b6b66a53bf0c5532710692b.zip binutils-62abb86c61a53a0a3b6b66a53bf0c5532710692b.tar.gz binutils-62abb86c61a53a0a3b6b66a53bf0c5532710692b.tar.bz2 |
gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extensionusers/simark/try-remove-vla
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
-rwxr-xr-x | gdb/configure | 2 | ||||
-rwxr-xr-x | gdbserver/configure | 2 | ||||
-rwxr-xr-x | gdbsupport/configure | 2 | ||||
-rw-r--r-- | gdbsupport/warning.m4 | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gdb/configure b/gdb/configure index c3d5cf7..232cdb9 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 026d250..71d0c2f 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 ae99125..bd6fc18 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 d12bccb..2dadd7f 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 |