[Bug c++/86210] [6/7 Regression] Missing -Wnonnull warning for function defined in the same TU
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:55:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86210
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:54:30 2018
New Revision: 262102
URL: https://gcc.gnu.org/viewcvs?rev=262102&root=gcc&view=rev
Log:
Backported from mainline
2018-06-20 Jakub Jelinek <jakub@redhat.com>
PR c++/86210
* c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
comment.
* g++.dg/warn/Wnonnull4.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/Wnonnull4.C
Modified:
branches/gcc-6-branch/gcc/c-family/ChangeLog
branches/gcc-6-branch/gcc/c-family/c-common.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list