summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-12-01 13:44:40 -0800
committerJulius Werner <jwerner@chromium.org>2021-12-07 17:47:09 +0000
commit3332c2dc6e1149b7ea4ce93244177ea2abf13349 (patch)
treee0b95fa05560bb1c61ea735cb82b79a21cc0db37 /tests
parent6ddacd6f5ba9c35f77a28d30c8c227cd072f4650 (diff)
downloadcoreboot-3332c2dc6e1149b7ea4ce93244177ea2abf13349.tar.gz
coreboot-3332c2dc6e1149b7ea4ce93244177ea2abf13349.tar.bz2
coreboot-3332c2dc6e1149b7ea4ce93244177ea2abf13349.zip
tests: Disable -Wsource-mgr for clang
Unit tests fail on clang 13.0 with a cryptic error: _timestamp_size changed binding to STB_WEAK [-Werror,-Wsource-mgr] Probably something related to the weird things we do to mock memlayout areas. Too lazy to track it down. Let's just disable this (clang-specific, not properly documented) warning flag. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: Ie49c9eef3c74592c068c899c6717621dbcb9f609 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59814 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.inc b/tests/Makefile.inc
index cbaf2c260af8..d6258da27ada 100644
--- a/tests/Makefile.inc
+++ b/tests/Makefile.inc
@@ -45,6 +45,7 @@ TEST_CFLAGS += -I$(src) -I$(src)/include -I$(src)/commonlib/include \
# Only put conservative warnings here that really detect code that's obviously
# unintentional.
TEST_CFLAGS += -Wall -Werror -Wundef -Wstrict-prototypes -Wno-inline-asm
+TEST_CFLAGS += -Wno-unknown-warning-option -Wno-source-mgr
# Path for Kconfig autoheader
TEST_CFLAGS += -I$(dir $(TEST_KCONFIG_AUTOHEADER))