From 3145bf08f2b2d95554d2b4dc35acc4f07249445c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 31 Jul 2024 14:06:13 -0400 Subject: [PATCH] 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 --- gdb/configure | 2 +- gdbserver/configure | 2 +- gdbsupport/configure | 2 +- gdbsupport/warning.m4 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/configure b/gdb/configure index 15ececfefa2..62deef2f341 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 3abc647acda..8d38b957e41 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 19b19c42c6f..54e32bbe2cd 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 d12bccbd3fb..2dadd7f99fd 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