public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-63] libgcov: add ATTRIBUTE_UNUSED for dump_string
@ 2022-05-02  4:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-05-02  4:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:28cfea987e12413a85a4fa1942800100c43d4b40

commit r13-63-g28cfea987e12413a85a4fa1942800100c43d4b40
Author: Martin Liska <mliska@suse.cz>
Date:   Mon May 2 06:46:05 2022 +0200

    libgcov: add ATTRIBUTE_UNUSED for dump_string
    
    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.

Diff:
---
 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)


^ 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 [gcc r13-63] libgcov: add ATTRIBUTE_UNUSED for dump_string Martin Liska

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