re PR c/89525 (inform messages from -Wbuiltin-declaration-mismatch even with -w)
commit66dcb747e8ba1f0ed6e0d49ed3d842b3e091609d
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Feb 2019 07:17:49 +0000 (28 08:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Feb 2019 07:17:49 +0000 (28 08:17 +0100)
treef9e4f0bf17c9733435280d2b609d2b9ca4dca8f9
parentc2df3c99d5cafbb9774fc6e944fbd64aa17c03bb
re PR c/89525 (inform messages from -Wbuiltin-declaration-mismatch even with -w)

PR c/89525
* c-typeck.c (convert_arguments): Call inform_declaration only if
the previous warning_at call returned true.

* gcc.dg/pr89525.c: New test.

From-SVN: r269274
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89525.c [new file with mode: 0644]