-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
Bugzilla Link | 34575 |
Version | 5.0 |
OS | All |
Reporter | LLVM Bugzilla Contributor |
Extended Description
Take this code:
#include <stdio.h>
int main()
{
printf(NULL, "x");
return 0;
}
gcc helpfully warns that:
<source>: In function 'int main()':
5 : <source>:5:19: warning: null argument where non-null required (argument 1) [-Wnonnull]
printf(NULL, "x");
^
5 : <source>:5:19: warning: too many arguments for format [-Wformat-extra-args]
while clang doesn't say anything (it doesn't even warn about extra arguments). It would be nice if it did.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"