From 90072900b35f2445aa5ee1bd3f07e584f847d92e Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Thu, 8 Sep 2022 16:38:50 +0200 Subject: tests: Disable unnecessary warnings Unit-tests had more strict warning setings than main build. Sometimes it can cause unit-tests builds to fail even if code compiles correctly when building normal coreboot image. Signed-off-by: Jakub Czapiga Change-Id: Ia219ccc8631b069436497eb45a1552a0910f7aa1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67453 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- tests/Makefile.common | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/Makefile.common b/tests/Makefile.common index 5cf04460733c..04bd6c94c353 100644 --- a/tests/Makefile.common +++ b/tests/Makefile.common @@ -45,6 +45,8 @@ TEST_CFLAGS += -I$(src) -I$(src)/include -I$(src)/commonlib/include \ # unintentional. TEST_CFLAGS += -Wall -Werror -Wundef -Wstrict-prototypes -Wno-inline-asm TEST_CFLAGS += -Wno-unknown-warning-option -Wno-source-mgr -Wno-main-return-type +TEST_CFLAGS += -Wno-array-compare -Wno-packed-not-aligned -Wno-trigraphs +TEST_CFLAGS += -Wno-unused-but-set-variables # Path for Kconfig autoheader TEST_CFLAGS += -I$(dir $(TEST_KCONFIG_AUTOHEADER)) -- cgit v1.2.3