From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 83C633858D3C; Tue, 4 Oct 2022 12:56:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83C633858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888173; bh=d1kGLMOD+FOCEkrTzd9DcWDpHdz2s+TPPUjLUgjHOhg=; h=From:To:Subject:Date:From; b=oynO8bw6gMs8siO1T4WJNsdLc1dOn020+xNKhUvciqsoMF6+VmO7iAsagOUSBp9zT HDhdypGwcc9kG4KtdieLfXPIK8eHT++eRgN/7ngP4n/KjVYctlSnN6uoDqLvun8HdU iY0PnFg3S5PIaNKrIoZH0A0Pj9R+ShuMpDoqe9z4= 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] intl: Fix clang -Wunused-but-set-variable on plural.c X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 3f7cb7b03a88be4479e3fcebaee0a51468586be8 X-Git-Newrev: 5a2579447f06d4d6f4d09dd40b86aeba8acf0086 Message-Id: <20221004125613.83C633858D3C@sourceware.org> Date: Tue, 4 Oct 2022 12:56:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5a2579447f06d4d6f4d09dd40b86aeba8acf0086 commit 5a2579447f06d4d6f4d09dd40b86aeba8acf0086 Author: Adhemerval Zanella Date: Wed Aug 24 11:13:23 2022 -0300 intl: Fix clang -Wunused-but-set-variable on plural.c Clang warns that '__gettextnerrs' set but not used: intl/plural.c:1034:9: error: variable '__gettextnerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; ^ Since the file is auto-generated, suppress the warning with a compiler flag. Diff: --- intl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intl/Makefile b/intl/Makefile index 315c75a18f..1c3b2a2273 100644 --- a/intl/Makefile +++ b/intl/Makefile @@ -154,7 +154,8 @@ $(objpfx)tst-gettext5.out: $(objpfx)tst-gettext.out $(objpfx)tst-gettext6.out: $(objpfx)tst-gettext.out CPPFLAGS += -D'LOCALEDIR="$(localedir)"' \ - -D'LOCALE_ALIAS_PATH="$(localedir)"' + -D'LOCALE_ALIAS_PATH="$(localedir)"' \ + -Wno-unused-but-set-variable BISONFLAGS = --yacc --no-lines --name-prefix=__gettext --output $(inst_localedir)/locale.alias: locale.alias $(+force)