From: Martin Liska Date: Mon, 2 May 2022 04:46:05 +0000 (+0200) Subject: libgcov: add ATTRIBUTE_UNUSED for dump_string X-Git-Tag: basepoints/gcc-14~7144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28cfea987e12413a85a4fa1942800100c43d4b40;p=thirdparty%2Fgcc.git 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 --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)