diff options
author | Martin Sebor <msebor@redhat.com> | 2020-07-07 11:23:50 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-07-07 11:23:50 -0600 |
commit | 6f9c9ea40a1e937ea1b549625cf7762d4a8a2078 (patch) | |
tree | f524fcd83c548ea7b9bb1b8b3a838663204e255f /gcc/lcm.h | |
parent | 2aeccecbf0d8c7e22926e0f740c46724da8a7be8 (diff) | |
download | gcc-6f9c9ea40a1e937ea1b549625cf7762d4a8a2078.zip gcc-6f9c9ea40a1e937ea1b549625cf7762d4a8a2078.tar.gz gcc-6f9c9ea40a1e937ea1b549625cf7762d4a8a2078.tar.bz2 |
Avoid printing informational notes when -Wmismatched-tags is suppressed in system headers (PR c++/96063)
Related:
PR c++/96063 - mismatched-tags warnings in stdlib headers
gcc/cp/ChangeLog:
PR c++/96063
* parser.c (class_decl_loc_t::diag_mismatched_tags): Print notes only
if warning_at returns nonzero.
gcc/testsuite/ChangeLog:
PR c++/96063
* g++.dg/warn/Wmismatched-tags-7.C: New test.
* g++.dg/warn/Wmismatched-tags-8.C: New test.
Diffstat (limited to 'gcc/lcm.h')
0 files changed, 0 insertions, 0 deletions