public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1859] libcc1: Add support for per-location warning groups.
@ 2021-06-28 21:20 Martin Sebor
  0 siblings, 0 replies; only message in thread
From: Martin Sebor @ 2021-06-28 21:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3f448890764fd75311b50cda667286dc2416e384

commit r12-1859-g3f448890764fd75311b50cda667286dc2416e384
Author: Martin Sebor <msebor@redhat.com>
Date:   Mon Jun 28 15:09:46 2021 -0600

    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.

Diff:
---
 libcc1/libcp1plugin.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index 79694b91964..ea6ee553401 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;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-28 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 21:20 [gcc r12-1859] libcc1: Add support for per-location warning groups Martin Sebor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).