[Bug c/89985] [9 Regression] Stray notes from OPT_Waddress_of_packed_member with -w
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 5 15:16:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89985
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Apr 5 15:15:37 2019
New Revision: 270169
URL: https://gcc.gnu.org/viewcvs?rev=270169&root=gcc&view=rev
Log:
Guard notes for -Waddress-of-packed-member on warning emission (PR c/89985)
gcc/c-family/ChangeLog:
PR c/89985
* c-warn.c (check_address_or_pointer_of_packed_member): Add
auto_diagnostic_group. Guard inform calls by result of
warning_at call.
gcc/testsuite/ChangeLog:
PR c/89985
* c-c++-common/pr89985.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/pr89985.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-warn.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list