From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 270CC3858C52; Tue, 4 Oct 2022 12:58:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 270CC3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888290; bh=8CL+4sjLKMyqngho4y2Qw8FpDzqkEqneu45zv8O7P4k=; h=From:To:Subject:Date:From; b=rfNBU22y68fgNqaBvFMa/yl7DeNNWBkJV1O7POdtT3lquDCxAecrQJsI0qsLPUSV5 6E1ijm2KpkUskeVCFfCj7Az7nD+tNDabTRBZmMPPaeSgKGcUFmaQH0j9tfIh4z0p8+ sUe5pl19RnB3sWblwGABN+T3pdwnzwNn0Tv6WgwY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] elf: Suppress clang -Wstring-plus-int on rtld.c X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 331cb4b8ac6c8cb734fa8bfed18f13a912d2db30 X-Git-Newrev: 615b683e18cff316d6bb8879bfb249a051c78bd1 Message-Id: <20221004125810.270CC3858C52@sourceware.org> Date: Tue, 4 Oct 2022 12:58:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=615b683e18cff316d6bb8879bfb249a051c78bd1 commit 615b683e18cff316d6bb8879bfb249a051c78bd1 Author: Adhemerval Zanella Date: Thu Mar 10 09:48:32 2022 -0300 elf: Suppress clang -Wstring-plus-int on rtld.c Diff: --- elf/rtld.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elf/rtld.c b/elf/rtld.c index 3b78f40562..613d39e398 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -2538,10 +2538,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy); _dl_printf ("\ Valid options for the LD_DEBUG environment variable are:\n\n"); + /* clang issues an warning adding 'const unsigned char' to a string + does not append to the string, however it is exactly what code + means here. */ + DIAG_PUSH_NEEDS_COMMENT_CLANG; + DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int"); for (cnt = 0; cnt < ndebopts; ++cnt) _dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name, " " + debopts[cnt].len - 3, debopts[cnt].helptext); + DIAG_POP_NEEDS_COMMENT_CLANG; _dl_printf ("\n\ To direct the debugging output into a file instead of standard output\n\