mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 00:51:51 -04:00
perf build: Add -funsigned-char to default CFLAGS
Commit 3bc753c06d ("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>
This commit is contained in:
@@ -349,6 +349,7 @@ CORE_CFLAGS += -fno-omit-frame-pointer
|
||||
CORE_CFLAGS += -Wall
|
||||
CORE_CFLAGS += -Wextra
|
||||
CORE_CFLAGS += -std=gnu11
|
||||
CORE_CFLAGS += -funsigned-char
|
||||
|
||||
CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti
|
||||
CXXFLAGS += -Wall
|
||||
|
||||
Reference in New Issue
Block a user