[1/2,gdb/build] Put warnings one per line

Message ID 20261028104110.1700720-2-tdevries@suse.de
State New
Headers
Series Two gdbsupport/warning.m4 updates |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed

Commit Message

Tom de Vries Oct. 28, 2026, 10:41 a.m. UTC
  Commit df3eb64a53c ("gdbsupport: re-format and sort warning flags") put each
warning on its own line, except for one: -Wno-error=maybe-uninitialized.

Fix this.
---
 gdb/configure         | 3 ++-
 gdbserver/configure   | 3 ++-
 gdbsupport/configure  | 3 ++-
 gdbsupport/warning.m4 | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)
  

Patch

diff --git a/gdb/configure b/gdb/configure
index e747ffce49f..07bf6edf1d1 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -31159,8 +31159,9 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
--Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-sign-compare \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbserver/configure b/gdbserver/configure
index e00e1e1c1c5..725c28e19ad 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -12889,8 +12889,9 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
--Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-sign-compare \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 7ed4e259ffe..31e9732ed1a 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -13892,8 +13892,9 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
--Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-sign-compare \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4
index 3148feb740a..7cae9996765 100644
--- a/gdbsupport/warning.m4
+++ b/gdbsupport/warning.m4
@@ -47,8 +47,9 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
--Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-sign-compare \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \