intl: Fix clang -Wunused-but-set-variable on plural.c
commit6ee5a9767a245455720d39eeaa3ce136825e8a42
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 24 Aug 2022 14:13:23 +0000 (24 11:13 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 1 Nov 2022 12:45:34 +0000 (1 09:45 -0300)
tree2deb836e1450bd1754d14fdbcc93563ecf79bcb9
parentd227fd53cbbc9ae7e5604da3669d04b6ccb53aa1
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>
intl/Makefile