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/42885] New: -fmudflap prevents 'conflicting types' warning


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


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