https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96310
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:e0633768a1a2efe689e5505b3a95aa949d704b06 commit r11-2322-ge0633768a1a2efe689e5505b3a95aa949d704b06 Author: Martin Sebor <mse...@redhat.com> Date: Sat Jul 25 14:21:47 2020 -0600 Fix PR c++/96310 - Ignoring -Wnonnull via pragma gcc diagnostics still produces an unwanted note. gcc/c-family/ChangeLog: PR c++/96310 * c-common.c (check_nonnull_arg): Print note only when warning was issued.