diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-04-23 14:43:27 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-31 13:07:49 -0400 |
commit | 35c840cc642359065d91beb6a6197101bb633ff2 (patch) | |
tree | f2a0c6c3d91a9c3ddd58f3c59dd3559e401dbbd5 /gdbsupport | |
parent | c2a2c5dba240be96cf8ec9abdde4e410524b9158 (diff) | |
download | binutils-users/simark/try-remove-vlas.zip binutils-users/simark/try-remove-vlas.tar.gz binutils-users/simark/try-remove-vlas.tar.bz2 |
gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extensionusers/simark/try-remove-vlas
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
Diffstat (limited to 'gdbsupport')
-rwxr-xr-x | gdbsupport/configure | 2 | ||||
-rw-r--r-- | gdbsupport/warning.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdbsupport/configure b/gdbsupport/configure index 19b19c4..54e32bb 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -14188,7 +14188,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 |