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 -funsigned-char to default CFLAGS

Commit 3bc753c06dd0 ("kbuild: treat char as always unsigned") made
chars unsigned by default in the Linux kernel. To avoid similar kinds
of bugs and warnings, make unsigned chars the default for the perf tool.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
be867c49 74e2dbe7

+1
+1
tools/perf/Makefile.config
··· 349 349 CORE_CFLAGS += -Wall 350 350 CORE_CFLAGS += -Wextra 351 351 CORE_CFLAGS += -std=gnu11 352 + CORE_CFLAGS += -funsigned-char 352 353 353 354 CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti 354 355 CXXFLAGS += -Wall