This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42885] New: -fmudflap prevents 'conflicting types' warning
- From: "christophe dot lyon at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2010 17:20:17 -0000
- Subject: [Bug c/42885] New: -fmudflap prevents 'conflicting types' warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Considering the sample code:
int round(int i) { return i;}
Compiled with gcc 4.4.3:
$ gcc -Wall round.c -c
round.c:1: warning: conflicting types for built-in function 'round'
If I add the -fmudflap option, the warning disappears:
$ gcc -Wall round.c -c -fmudflap
$
I guess it should still warn.
--
Summary: -fmudflap prevents 'conflicting types' warning
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christophe dot lyon at st dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42885