aboutsummaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-06-28 15:09:46 -0600
committerMartin Sebor <msebor@redhat.com>2021-06-28 15:09:46 -0600
commit3f448890764fd75311b50cda667286dc2416e384 (patch)
tree933d6ef627cdf9215f85495e1775fc7175f0493f /libcc1
parentd5e69948beb61fb320d9ca703faff84d6f608545 (diff)
downloadgcc-3f448890764fd75311b50cda667286dc2416e384.zip
gcc-3f448890764fd75311b50cda667286dc2416e384.tar.gz
gcc-3f448890764fd75311b50cda667286dc2416e384.tar.bz2
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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index 79694b9..ea6ee55 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;
}