[PATCH] D122983: [C11/C2x] Change the behavior of the implicit function declaration warning
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 30 09:21:31 PDT 2022
xbolva00 added a comment.
In D122983#3484064 <https://reviews.llvm.org/D122983#3484064>, @manojgupta wrote:
> 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?
Yéah, this is unfortunate if -Wno-error does nothing :/ other options from release notes work for you?
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