Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf build: Add Wextra for C++ compilation

Commit d58ac0bf8d1e ("perf build: Add clang and llvm compile and
linking support") added -Wall and -Wno-strict-aliasing for CXXFLAGS,
but not -Wextra. -Wno-strict-aliasing is no longer necessary, adding
-Wextra for CXXFLAGS requires adding -Wno-unused-parameter clang.cpp
and clang-test.cpp for LIBCLANGLLVM=1 to build.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: James Clark <james.clark@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Gaosheng Cui <cuigaosheng1@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Cc: bpf@vger.kernel.org
Cc: llvm@lists.linux.dev
Link: https://lore.kernel.org/r/20230728064917.767761-4-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
e5764ae4 435bea0a

+4 -1
+1 -1
tools/perf/Makefile.config
··· 333 333 334 334 CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti 335 335 CXXFLAGS += -Wall 336 + CXXFLAGS += -Wextra 336 337 CXXFLAGS += -fno-omit-frame-pointer 337 - CXXFLAGS += -Wno-strict-aliasing 338 338 339 339 HOSTCFLAGS += -Wall 340 340 HOSTCFLAGS += -Wextra
+3
tools/perf/util/c++/Build
··· 1 1 perf-$(CONFIG_CLANGLLVM) += clang.o 2 2 perf-$(CONFIG_CLANGLLVM) += clang-test.o 3 + 4 + CXXFLAGS_clang.o += -Wno-unused-parameter 5 + CXXFLAGS_clang-test.o += -Wno-unused-parameter