OSDN Git Service

perf build: Remove -Wno-unused-but-set-variable from the flex flags when building...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Aug 2023 14:46:20 +0000 (11:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Aug 2023 13:27:21 +0000 (10:27 -0300)
commit878460e8d0ff84a0edbaff9d06f9d9dbe8353800
tree05d572afb4c009f1494fedd7816914cf030c044d
parent55b290501928bb2648978257e7a00fc3a64b15fa
perf build: Remove -Wno-unused-but-set-variable from the flex flags when building with clang < 13.0.0

clang < 13.0.0 doesn't grok -Wno-unused-but-set-variable, so just remove
it to avoid:

  error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]
  make[4]: *** [/git/perf-6.5.0-rc4/tools/build/Makefile.build:128: /tmp/build/perf/util/pmu-flex.o] Error 1
  make[4]: *** Waiting for unfinished jobs....

Fixes: ddc8e4c966923ad1 ("perf build: Disable fewer bison warnings")
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZNUSWr52jUnVaaa%2F@kernel.org/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/Build