diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index d4517d269eb32ca84ee1dfa069bda4e872a1ac98..aba62d588b85a8533a26508bf390d39ffd6880b3 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)