public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][PUSHED] libgcov: add ATTRIBUTE_UNUSED for dump_string
@ 2022-05-02  4:47 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-05-02  4:47 UTC (permalink / raw)
  To: gcc-patches

Mitigates the following clang warning:
libgcc/libgcov-driver.c:416:1: warning: unused function 'dump_string' [-Wunused-function]

libgcc/ChangeLog:

	* libgcov-driver.c: Add ATTRIBUTE_UNUSED.
---
 libgcc/libgcov-driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index d4517d269eb..aba62d588b8 100644
--- a/libgcc/libgcov-driver.c
+++ b/libgcc/libgcov-driver.c
@@ -413,6 +413,7 @@ dump_counter (gcov_type counter,
 /* Dump the STRING using the DUMP handler called with ARG.  */
 
 static inline void
+ATTRIBUTE_UNUSED
 dump_string (const char *string,
 	     void (*dump_fn) (const void *, unsigned, void *),
 	     void *arg)
-- 
2.36.0


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

only message in thread, other threads:[~2022-05-02  4:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02  4:47 [PATCH][PUSHED] libgcov: add ATTRIBUTE_UNUSED for dump_string Martin Liška

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).