mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user