This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/19635] static nested function workaround for -Wmissing-declarations (see bug #1517) no longer works


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]