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:
parent
d5e69948be
commit
3f44889076
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user