]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Do not ignore some forms of -Wimplicit-int in system headers
authorFlorian Weimer <fweimer@redhat.com>
Fri, 1 Dec 2023 07:10:13 +0000 (08:10 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 1 Dec 2023 07:10:13 +0000 (08:10 +0100)
commit3ae8882e70ad3c33b7a27a8e521dca6c1d434f74
tree3f21e1bc31549de4fd8cd758424c9ff3cc62cc02
parent4ee2aca7ca098cc6e622a9a41e63224af37e6532
c: Do not ignore some forms of -Wimplicit-int in system headers

Most -Wimplicit-int warnings were unconditionally disabled for system
headers.  Only missing types for parameters in old-style function
definitions resulted in warnings.  This is inconsistent with the
treatment of other permerrors, which are active in system headers.

gcc/c/

* c-decl.cc (grokdeclarator): Do not skip -Wimplicit-int
warnings or errors in system headers.

gcc/testsuite/

* gcc.dg/permerror-system.c: Expect all -Wimplicit-int
permerrors.
gcc/c/c-decl.cc
gcc/testsuite/gcc.dg/permerror-system.c