projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5e6994
)
libcc1: Add support for per-location warning groups.
author
Martin Sebor
<msebor@redhat.com>
Mon, 28 Jun 2021 21:09:46 +0000
(15:09 -0600)
committer
Martin Sebor
<msebor@redhat.com>
Mon, 28 Jun 2021 21:09:46 +0000
(15:09 -0600)
libcc1/ChangeLog:
* libcp1plugin.cc (record_decl_address): Replace a direct use
of TREE_NO_WARNING with suppress_warning.
libcc1/libcp1plugin.cc
patch
|
blob
|
history
diff --git
a/libcc1/libcp1plugin.cc
b/libcc1/libcp1plugin.cc
index
79694b9
..
ea6ee55
100644
(file)
--- 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;
}