https://bugs.llvm.org/show_bug.cgi?id=41850

            Bug ID: 41850
           Summary: implement -Wbuiltin-declaration-mismatch
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Looks like gcc picked up a useful warning in the 7.1 release:

void puts(const char*);

<source>:4:6: warning: conflicting types for built-in function 'puts'; expected
'int(const char *)' [-Wbuiltin-declaration-mismatch]

    4 | void puts(const char*);

      |      ^~~~

<source>:1:1: note: 'puts' is declared in header '<stdio.h>'

  +++ |+#include <stdio.h>

    1 | int foo();

Compiler returned: 0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to