summaryrefslogtreecommitdiffstats
path: root/tests/tcg
diff options
context:
space:
mode:
authorAlex Bennée2020-12-10 20:04:17 +0100
committerPaolo Bonzini2021-01-02 21:03:09 +0100
commit2af43a6a59d6a113afb34f21b3d81264288ca735 (patch)
treede8def47310342a85461a0788e326a3af34a9f7f /tests/tcg
parentgitlab: add --without-default-features build (diff)
downloadqemu-2af43a6a59d6a113afb34f21b3d81264288ca735.tar.gz
qemu-2af43a6a59d6a113afb34f21b3d81264288ca735.tar.xz
qemu-2af43a6a59d6a113afb34f21b3d81264288ca735.zip
tests/tcg: build tests with -Werror
Hopefully this will guard against sloppy code getting into our tests. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20201210190417.31673-9-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/Makefile.target2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target
index 2ae86776cd..24d75a5801 100644
--- a/tests/tcg/Makefile.target
+++ b/tests/tcg/Makefile.target
@@ -94,7 +94,7 @@ ifdef CONFIG_USER_ONLY
-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target
# Add the common build options
-CFLAGS+=-Wall -O0 -g -fno-strict-aliasing
+CFLAGS+=-Wall -Werror -O0 -g -fno-strict-aliasing
ifeq ($(BUILD_STATIC),y)
LDFLAGS+=-static
endif