c-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.
authorJoseph Myers <jsm@polyomino.org.uk>
Tue, 3 Aug 2004 22:09:13 +0000 (23:09 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 3 Aug 2004 22:09:13 +0000 (23:09 +0100)
commit9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee
treea534cd9d6e051f107ee4ae8faa1e824cf9bddaeb
parent2e847896896e3283a0551eeb46b4d3c3c8211d2a
c-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.

* c-decl.c (implicitly_declare): Diagnose incompatible implicit
declarations.

testsuite:
* gcc.dg/redecl-5.c: New test.
* gcc.dg/format/attr-6.c: Expect warning for implicit declaration
of scanf.

From-SVN: r85509
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/attr-6.c
gcc/testsuite/gcc.dg/redecl-5.c [new file with mode: 0644]