From: Alex Bennée Date: Fri, 9 Jul 2021 14:29:58 +0000 (+0100) Subject: contrib/plugins: enable -Wall for building plugins X-Git-Tag: v6.1.0-rc0~13^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a1f6e5975dabee12c0b7b160630c59c6fcff6c3;p=thirdparty%2Fqemu.git contrib/plugins: enable -Wall for building plugins Lets spot the obvious errors. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <20210709143005.1554-34-alex.bennee@linaro.org> --- diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile index b9d7935e5ef..3431bc1ce99 100644 --- a/contrib/plugins/Makefile +++ b/contrib/plugins/Makefile @@ -24,7 +24,7 @@ SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES))) # The main QEMU uses Glib extensively so it's perfectly fine to use it # in plugins (which many example do). CFLAGS = $(GLIB_CFLAGS) -CFLAGS += -fPIC +CFLAGS += -fPIC -Wall $(filter -W%, $(QEMU_CFLAGS)) CFLAGS += $(if $(findstring no-psabi,$(QEMU_CFLAGS)),-Wpsabi) CFLAGS += -I$(SRC_PATH)/include/qemu