mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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; ^ Clang 15 (https://reviews.llvm.org/D122271) -Wunused-but-set-variable gives a warning while GCC doesn't. The -Wunused-but-set-variable is available in GCC 4.6, lower than the minimum required version 6.2. Since the file is auto-generated, suppress the warning with a compiler flag. Reviewed-by: Fangrui Song <maskray@google.com>
This commit is contained in:
parent
d227fd53cb
commit
6ee5a9767a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user