]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extension users/simark/try-remove-vla
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2024 14:43:27 +0000 (14:43 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2024 20:52:54 +0000 (20:52 +0000)
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

gdb/configure
gdbserver/configure
gdbsupport/configure
gdbsupport/warning.m4

index c3d5cf7ed63d6089749c60b4186617933c1a4e6f..232cdb9652148f6d5067173a8e5245bfd419799e 100755 (executable)
@@ -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
index 026d250cc73265c5f65706e4c6641f04bcffc1ff..71d0c2fd1bcc622f16eb7ed11ad30675ea075ef7 100755 (executable)
@@ -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
index ae991250ce4c0e7415c32f8f85abc8b53a108fbb..bd6fc18148ee9e34ac07cb7e2ebd0502a700d5b0 100755 (executable)
@@ -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
index d12bccbd3fb9681fdeb599f39da71f0900f70f1e..2dadd7f99fd1a4a8b4084f78388bde5a9c32b9fd 100644 (file)
@@ -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