This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19635] static nested function workaround for -Wmissing-declarations (see bug #1517) no longer works
- 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: 26 Jan 2005 11:57:44 -0000
- Subject: [Bug c/19635] static nested function workaround for -Wmissing-declarations (see bug #1517) no longer works
- References: <20050126071125.19635.bartoldeman@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-26 11:57 -------
No static means something werid in nested functions (really it means nothing so that is why it was
removed).
The correct way to fix the missing declarations warning is the following:
int
main (void)
{
int a;
auto int nested (int); // <-----this
int nested (int b)
{
return b + 2;
}
return (a + nested (a));
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19635