diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2025-03-15 18:13:40 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-17 16:14:08 -0400 |
commit | df3eb64a53c3589f4e930a89e08e2200e8627509 (patch) | |
tree | b3e8811c78dd5672f9d521ec3146e443b725d1c0 | |
parent | 71f193a5c1cb02dcde6ac160cdab88e9725862bb (diff) | |
download | binutils-df3eb64a53c3589f4e930a89e08e2200e8627509.zip binutils-df3eb64a53c3589f4e930a89e08e2200e8627509.tar.gz binutils-df3eb64a53c3589f4e930a89e08e2200e8627509.tar.bz2 |
gdbsupport: re-format and sort warning flags
Put them one per line and sort alphabetically.
Change-Id: Idb6947d444dc6e556a75645b04f97a915bba7a59
Approved-By: Tom Tromey <tom@tromey.com>
-rwxr-xr-x | gdb/configure | 32 | ||||
-rwxr-xr-x | gdbserver/configure | 32 | ||||
-rwxr-xr-x | gdbsupport/configure | 32 | ||||
-rw-r--r-- | gdbsupport/warning.m4 | 32 |
4 files changed, 80 insertions, 48 deletions
diff --git a/gdb/configure b/gdb/configure index 92adb53..f4f0262 100755 --- a/gdb/configure +++ b/gdb/configure @@ -31274,22 +31274,30 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi # The options we'll try to enable. -build_warnings="-Wall -Wpointer-arith \ --Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ --Wno-switch -Wno-char-subscripts \ --Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-error=maybe-uninitialized \ --Wno-mismatched-tags \ --Wno-error=deprecated-register \ --Wsuggest-override \ --Wimplicit-fallthrough=5 \ --Wduplicated-cond \ --Wshadow=local \ +build_warnings=" \ +-Wall \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ --Wredundant-move \ +-Wduplicated-cond \ +-Wempty-body \ +-Wimplicit-fallthrough=5 \ -Wmissing-declarations \ +-Wno-char-subscripts \ +-Wno-error=deprecated-register \ +-Wno-mismatched-tags \ +-Wno-sign-compare -Wno-error=maybe-uninitialized \ +-Wno-switch \ +-Wno-unused \ +-Wpointer-arith \ +-Wredundant-move \ +-Wshadow=local \ -Wstrict-null-sentinel \ +-Wsuggest-override \ +-Wunused-but-set-parameter \ +-Wunused-but-set-variable \ +-Wunused-function \ +-Wunused-value \ +-Wunused-variable \ -Wvla \ " diff --git a/gdbserver/configure b/gdbserver/configure index 25b431e..0deb146 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -13671,22 +13671,30 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi # The options we'll try to enable. -build_warnings="-Wall -Wpointer-arith \ --Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ --Wno-switch -Wno-char-subscripts \ --Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-error=maybe-uninitialized \ --Wno-mismatched-tags \ --Wno-error=deprecated-register \ --Wsuggest-override \ --Wimplicit-fallthrough=5 \ --Wduplicated-cond \ --Wshadow=local \ +build_warnings=" \ +-Wall \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ --Wredundant-move \ +-Wduplicated-cond \ +-Wempty-body \ +-Wimplicit-fallthrough=5 \ -Wmissing-declarations \ +-Wno-char-subscripts \ +-Wno-error=deprecated-register \ +-Wno-mismatched-tags \ +-Wno-sign-compare -Wno-error=maybe-uninitialized \ +-Wno-switch \ +-Wno-unused \ +-Wpointer-arith \ +-Wredundant-move \ +-Wshadow=local \ -Wstrict-null-sentinel \ +-Wsuggest-override \ +-Wunused-but-set-parameter \ +-Wunused-but-set-variable \ +-Wunused-function \ +-Wunused-value \ +-Wunused-variable \ -Wvla \ " diff --git a/gdbsupport/configure b/gdbsupport/configure index 67a48c4..63619d7 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -14233,22 +14233,30 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi # The options we'll try to enable. -build_warnings="-Wall -Wpointer-arith \ --Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ --Wno-switch -Wno-char-subscripts \ --Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-error=maybe-uninitialized \ --Wno-mismatched-tags \ --Wno-error=deprecated-register \ --Wsuggest-override \ --Wimplicit-fallthrough=5 \ --Wduplicated-cond \ --Wshadow=local \ +build_warnings=" \ +-Wall \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ --Wredundant-move \ +-Wduplicated-cond \ +-Wempty-body \ +-Wimplicit-fallthrough=5 \ -Wmissing-declarations \ +-Wno-char-subscripts \ +-Wno-error=deprecated-register \ +-Wno-mismatched-tags \ +-Wno-sign-compare -Wno-error=maybe-uninitialized \ +-Wno-switch \ +-Wno-unused \ +-Wpointer-arith \ +-Wredundant-move \ +-Wshadow=local \ -Wstrict-null-sentinel \ +-Wsuggest-override \ +-Wunused-but-set-parameter \ +-Wunused-but-set-variable \ +-Wunused-function \ +-Wunused-value \ +-Wunused-variable \ -Wvla \ " diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index 2dadd7f..b7c2dc5 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -36,22 +36,30 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi # The options we'll try to enable. -build_warnings="-Wall -Wpointer-arith \ --Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ --Wno-switch -Wno-char-subscripts \ --Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ --Wno-sign-compare -Wno-error=maybe-uninitialized \ --Wno-mismatched-tags \ --Wno-error=deprecated-register \ --Wsuggest-override \ --Wimplicit-fallthrough=5 \ --Wduplicated-cond \ --Wshadow=local \ +build_warnings=" \ +-Wall \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ --Wredundant-move \ +-Wduplicated-cond \ +-Wempty-body \ +-Wimplicit-fallthrough=5 \ -Wmissing-declarations \ +-Wno-char-subscripts \ +-Wno-error=deprecated-register \ +-Wno-mismatched-tags \ +-Wno-sign-compare -Wno-error=maybe-uninitialized \ +-Wno-switch \ +-Wno-unused \ +-Wpointer-arith \ +-Wredundant-move \ +-Wshadow=local \ -Wstrict-null-sentinel \ +-Wsuggest-override \ +-Wunused-but-set-parameter \ +-Wunused-but-set-variable \ +-Wunused-function \ +-Wunused-value \ +-Wunused-variable \ -Wvla \ " |