This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22291] New: clash with built-in function ffs
- From: "wim dot yedema at philips dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2005 09:12:13 -0000
- Subject: [Bug c/22291] New: clash with built-in function ffs
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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