diff options
author | Martin Sebor <msebor@redhat.com> | 2021-06-28 15:09:46 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-06-28 15:09:46 -0600 |
commit | 3f448890764fd75311b50cda667286dc2416e384 (patch) | |
tree | 933d6ef627cdf9215f85495e1775fc7175f0493f /libcc1 | |
parent | d5e69948beb61fb320d9ca703faff84d6f608545 (diff) | |
download | gcc-3f448890764fd75311b50cda667286dc2416e384.tar.gz |
libcc1: Add support for per-location warning groups.
libcc1/ChangeLog:
* libcp1plugin.cc (record_decl_address): Replace a direct use
of TREE_NO_WARNING with suppress_warning.
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/libcp1plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 79694b91964..ea6ee553401 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -541,7 +541,7 @@ record_decl_address (plugin_context *ctx, decl_addr_value value) **slot = value; /* We don't want GCC to warn about e.g. static functions without a code definition. */ - TREE_NO_WARNING (value.decl) = 1; + suppress_warning (value.decl); return *slot; } |