aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-04-23 14:43:27 +0000
committerSimon Marchi <simon.marchi@efficios.com>2024-07-31 14:02:07 -0400
commitff0271177ec87d231a46a03c1c282867d909a868 (patch)
treed20cedd942989ba6332aa8b8e1065042a6dca7aa
parent27dab0bc34a70591e8cc736fdb7317ff5e3b11ef (diff)
downloadgdb-users/simark/try-remove-vlas-2.zip
gdb-users/simark/try-remove-vlas-2.tar.gz
gdb-users/simark/try-remove-vlas-2.tar.bz2
gdb, gdbserver, gdbsupport: remove -Wno-vla-cxx-extensionusers/simark/try-remove-vlas-2
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-xgdb/configure2
-rwxr-xr-xgdbserver/configure2
-rwxr-xr-xgdbsupport/configure2
-rw-r--r--gdbsupport/warning.m42
4 files changed, 4 insertions, 4 deletions
diff --git a/gdb/configure b/gdb/configure
index 15ececf..62deef2 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -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
diff --git a/gdbserver/configure b/gdbserver/configure
index 3abc647..8d38b95 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -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
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