diff options
| author | Ian Rogers <irogers@google.com> | 2026-03-06 22:19:08 +0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-04-01 06:22:02 +0300 |
| commit | be867c49fe62d56b5a4c2e08ce47dd396d13714f (patch) | |
| tree | 37192586c1673e6f4b7e5796fa6ef83f32026f5d /tools | |
| parent | 74e2dbe7be5037a5e5eed6bc1ad562747ac88566 (diff) | |
| download | linux-be867c49fe62d56b5a4c2e08ce47dd396d13714f.tar.xz | |
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>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/Makefile.config | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 15fbba9f4ca8..333ddd0e4bd8 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -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 |
