This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48091] No warning when given function arguments mismatch earlier, old style K&R function definition
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 10:33:29 +0000
- Subject: [Bug c/48091] No warning when given function arguments mismatch earlier, old style K&R function definition
- Auto-submitted: auto-generated
- References: <bug-48091-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48091
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-14 10:33:21 UTC ---
That's how K&R works. The function definition isn't a prototype.