From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id CF1643857346; Mon, 2 May 2022 04:47:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF1643857346 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-63] libgcov: add ATTRIBUTE_UNUSED for dump_string X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: bee8b8602ff69a3bd32c63aa6b5013fd893184eb X-Git-Newrev: 28cfea987e12413a85a4fa1942800100c43d4b40 Message-Id: <20220502044744.CF1643857346@sourceware.org> Date: Mon, 2 May 2022 04:47:44 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 04:47:44 -0000 https://gcc.gnu.org/g:28cfea987e12413a85a4fa1942800100c43d4b40 commit r13-63-g28cfea987e12413a85a4fa1942800100c43d4b40 Author: Martin Liska 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)