This program:

int ffs();
int ffs()
{ return 0; }

Gives the following error messages:

ffs.c: In function `ffs':
ffs.c:4: error: number of arguments doesn't match prototype
cc1: error: prototype declaration

If I add void in the argument list I get the following:
ffs.c:1: warning: conflicting types for built-in function 'ffs'

-- 
           Summary: clash with built-in function ffs
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wim dot yedema at philips dot com
                CC: gcc-bugs at gcc dot gnu dot org
 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=22291

Reply via email to