]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Objective-C/C++: Enable Wignored-attributes.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 13 Oct 2025 05:57:55 +0000 (06:57 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 13 Oct 2025 06:03:12 +0000 (07:03 +0100)
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 <iain@sandoe.co.uk>
gcc/c-family/c.opt

index abe0aa6b397a1dd2e45726f1604bbccba5468473..a7fd14aa18db8008af173ac314fd0d1d94967306 100644 (file)
@@ -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