This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11369] too relaxed checking with -Wstrict-prototypes
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2003 07:16:02 -0000
- Subject: [Bug c/11369] too relaxed checking with -Wstrict-prototypes
- References: <20030629103937.11369.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-20 07:16 -------
This is invalid as the documentation talks about "prototypes" non existant:
Warn about unprototyped function declarations
In this case foo is prototyped.
The flag you want is -Wold-style-definition instead but this only added for 3.4, closing as
fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369