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
Reviewed-By: Keith Seitz <keiths@redhat.com>
This commit is contained in:
Simon Marchi 2024-07-31 14:06:13 -04:00 committed by Simon Marchi
parent d724d71ad2
commit 3145bf08f2
4 changed files with 4 additions and 4 deletions

2
gdb/configure vendored
View File

@ -31188,7 +31188,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

2
gdbserver/configure vendored
View File

@ -13715,7 +13715,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

View File

@ -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

View 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