contrib/plugins: enable -Wall for building plugins
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 9 Jul 2021 14:29:58 +0000 (15:29 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 14 Jul 2021 14:54:13 +0000 (15:54 +0100)
Lets spot the obvious errors.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210709143005.1554-34-alex.bennee@linaro.org>

contrib/plugins/Makefile

index b9d7935e5ef0c28d52fdc0ea7be779d45b69f52a..3431bc1ce990ee4d05f50fbfc2f0fb3f01c0b4e3 100644 (file)
@@ -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