diff options
author | Martin Liska <mliska@suse.cz> | 2021-06-29 08:49:26 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-06-29 08:49:26 +0200 |
commit | 490d1e1be15b62b51a2de248e6d7f76356402bc9 (patch) | |
tree | a140872a97abd647ca0e5287e5375b7514be227b /libcc1 | |
parent | adf0825ae77554b00615521a545b608892bb272c (diff) | |
parent | 095a01cf6e3883b3083cf339b680cdb39910f529 (diff) | |
download | gcc-490d1e1be15b62b51a2de248e6d7f76356402bc9.zip gcc-490d1e1be15b62b51a2de248e6d7f76356402bc9.tar.gz gcc-490d1e1be15b62b51a2de248e6d7f76356402bc9.tar.bz2 |
Merge branch 'master' into devel/sphinx
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; } |