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.
This commit is contained in:
Martin Sebor 2021-06-28 15:09:46 -06:00
parent d5e69948be
commit 3f44889076
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}