Disable Wstringop-overflow
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-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
Commit Message
Recently I submitted a few patches fixing Wstringop-overflow warnings [1][2]
and a patch adding Wno-error=stringop-overflow [3].
All of these patches were dealing with false positives.
A review comment [4] suggested going one step further: to disable the warning.
This patch implements that approach.
Tested on x86_64-linux.
[1] https://sourceware.org/pipermail/gdb-patches/2026-November/231551.html
[2] https://sourceware.org/pipermail/gdb-patches/2026-October/231432.html
[3] https://sourceware.org/pipermail/gdb-patches/2026-October/231431.html
[4] https://sourceware.org/pipermail/gdb-patches/2026-October/231438.html
---
gdb/configure | 1 +
gdbserver/configure | 1 +
gdbsupport/configure | 1 +
gdbsupport/warning.m4 | 1 +
4 files changed, 4 insertions(+)
base-commit: 8614f56cb2598044f6f9b60fe551883d26bf7465
@@ -31161,6 +31161,7 @@ build_warnings=" \
-Wno-error=deprecated-register \
-Wno-mismatched-tags \
-Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
-Wno-switch \
-Wno-unused \
-Wpointer-arith \
@@ -12891,6 +12891,7 @@ build_warnings=" \
-Wno-error=deprecated-register \
-Wno-mismatched-tags \
-Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
-Wno-switch \
-Wno-unused \
-Wpointer-arith \
@@ -13894,6 +13894,7 @@ build_warnings=" \
-Wno-error=deprecated-register \
-Wno-mismatched-tags \
-Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
-Wno-switch \
-Wno-unused \
-Wpointer-arith \
@@ -49,6 +49,7 @@ build_warnings=" \
-Wno-error=deprecated-register \
-Wno-mismatched-tags \
-Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
-Wno-switch \
-Wno-unused \
-Wpointer-arith \