diff options
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index 672e968..f28dfc7 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2021-06-28 Martin Sebor <msebor@redhat.com> + + * libcp1plugin.cc (record_decl_address): Replace a direct use + of TREE_NO_WARNING with suppress_warning. + 2021-05-05 Tom Tromey <tom@tromey.com> * compiler.cc (make_regexp): Take const std::string. 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; } |