[PATCH] D122983: [C11/C2x] Change the behavior of the implicit function declaration warning
Manoj Gupta via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 30 09:17:17 PDT 2022
manojgupta added a comment.
We are finding a lot of failures in our ToT builds with this change. here is an example for a configure script:
$ cat tent.c
int main ()
{
tgetent(0,0);
return 0;
}
$ bin/clang -c tent.c -Wno-error
tent.c:3:2: error: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
tgetent(0,0);
^
1 error generated.
It feels very surprising that Wno-error does not suppress this warning. Is that expected?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122983/new/
https://reviews.llvm.org/D122983
More information about the cfe-commits
mailing list