mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-14 15:02:54 +00:00
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>
This commit is contained in:
parent
53f41245b0
commit
2af43a6a59
|
@ -94,7 +94,7 @@ ifdef CONFIG_USER_ONLY
|
||||||
-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target
|
-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target
|
||||||
|
|
||||||
# Add the common build options
|
# Add the common build options
|
||||||
CFLAGS+=-Wall -O0 -g -fno-strict-aliasing
|
CFLAGS+=-Wall -Werror -O0 -g -fno-strict-aliasing
|
||||||
ifeq ($(BUILD_STATIC),y)
|
ifeq ($(BUILD_STATIC),y)
|
||||||
LDFLAGS+=-static
|
LDFLAGS+=-static
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue