[llvm-bugs] [Bug 41850] New: implement -Wbuiltin-declaration-mismatch
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 12 08:00:07 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk, srhines at google.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190512/b8901749/attachment.html>
More information about the llvm-bugs
mailing list