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