From 3f448890764fd75311b50cda667286dc2416e384 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 28 Jun 2021 15:09:46 -0600 Subject: [PATCH] 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. --- libcc1/libcp1plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }