This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36774] New: -Wmissing-prototypes triggers on nested functions
- From: "mj at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 16:09:01 -0000
- Subject: [Bug c/36774] New: -Wmissing-prototypes triggers on nested functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When a nested function is compiled with -Wmissing-prototypes, the compiler
reports that the function lacks a prototype. A prototype with an `auto' storage
class silences the warning, but the usefulness of such a prototype is very
dubious.
The right solution seems to be to make the warning ignore nested functions
altogether.
--
Summary: -Wmissing-prototypes triggers on nested functions
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mj at ucw dot cz
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36774