re PR c++/86210 (Missing -Wnonnull warning for function defined in the same TU)
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Jun 2018 16:07:21 +0000 (18:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Jun 2018 16:07:21 +0000 (18:07 +0200)
commitf41b7612a9bbc18652f6577f79bf814a13d1510c
tree569bacc99f26bab283c304a153a56bef18f24fa9
parentd9addf33447f76c194072e096c27e7c901004166
re PR c++/86210 (Missing -Wnonnull warning for function defined in the same TU)

PR c++/86210
* c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
comment.

* g++.dg/warn/Wnonnull4.C: New test.

From-SVN: r261811
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wnonnull4.C [new file with mode: 0644]