https://gcc.gnu.org/g:5b57da59c12e69072a0ccf86bd83830a3c5d5cc6
commit r16-4386-g5b57da59c12e69072a0ccf86bd83830a3c5d5cc6 Author: Iain Sandoe <[email protected]> Date: Mon Oct 13 06:57:55 2025 +0100 Objective-C/C++: Enable Wignored-attributes. r16-4373 altered headers so that Wignored-attributes was named in a diagnostic push. This causes several Objective-C++ tests to fail since the atomicity.h header is included there. Since Objective-C/C++ are intended to be supersets of the base language, there is no specific reason to exclude this warning there. gcc/c-family/ChangeLog: * c.opt: Enable Wignored-attributes for Objective-C and Objective-C++. Signed-off-by: Iain Sandoe <[email protected]> Diff: --- gcc/c-family/c.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index abe0aa6b397a..a7fd14aa18db 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -870,7 +870,7 @@ C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra) Warn whenever type qualifiers are ignored. Wignored-attributes -C C++ Var(warn_ignored_attributes) Init(1) Warning +C ObjC C++ ObjC++ Var(warn_ignored_attributes) Init(1) Warning Warn whenever attributes are ignored. Wimplicit
