]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcov: add ATTRIBUTE_UNUSED for dump_string
authorMartin Liska <mliska@suse.cz>
Mon, 2 May 2022 04:46:05 +0000 (06:46 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 2 May 2022 04:46:05 +0000 (06:46 +0200)
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

index d4517d269eb32ca84ee1dfa069bda4e872a1ac98..aba62d588b85a8533a26508bf390d39ffd6880b3 100644 (file)
@@ -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)