[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v5 37/44] contrib/plugins: enable -Wall for building plugins
From: |
Alex Bennée |
Subject: |
[PULL v5 37/44] contrib/plugins: enable -Wall for building plugins |
Date: |
Wed, 14 Jul 2021 16:00:29 +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>
diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile
index b9d7935e5e..3431bc1ce9 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
--
2.20.1
- [PULL v5 33/44] configure: don't allow plugins to be enabled for a non-TCG build, (continued)
- [PULL v5 33/44] configure: don't allow plugins to be enabled for a non-TCG build, Alex Bennée, 2021/07/14
- [PULL v5 19/44] tests/docker: fix mistakes in ubuntu package lists, Alex Bennée, 2021/07/14
- [PULL v5 25/44] tests/docker: expand opensuse-leap package list, Alex Bennée, 2021/07/14
- [PULL v5 21/44] tests/docker: expand centos8 package list, Alex Bennée, 2021/07/14
- [PULL v5 29/44] plugins: fix-up handling of internal hostaddr for 32 bit, Alex Bennée, 2021/07/14
- [PULL v5 15/44] tests/docker: remove FEATURES env var from templates, Alex Bennée, 2021/07/14
- [PULL v5 27/44] tests/vm: update openbsd to release 6.9, Alex Bennée, 2021/07/14
- [PULL v5 18/44] tests/docker: fix mistakes in fedora package list, Alex Bennée, 2021/07/14
- [PULL v5 16/44] tests/docker: fix sorting in package lists, Alex Bennée, 2021/07/14
- [PULL v5 17/44] tests/docker: fix mistakes in centos package lists, Alex Bennée, 2021/07/14
- [PULL v5 37/44] contrib/plugins: enable -Wall for building plugins,
Alex Bennée <=
- [PULL v5 32/44] tcg/plugins: remove some stale entries from the symbol list, Alex Bennée, 2021/07/14
- [PULL v5 35/44] configure: stop user enabling plugins on Windows for now, Alex Bennée, 2021/07/14
- [PULL v5 38/44] contrib/plugins: add execlog to log instruction execution and memory access, Alex Bennée, 2021/07/14
- [PULL v5 28/44] tests/tcg: make test-mmap a little less aggressive, Alex Bennée, 2021/07/14
- [PULL v5 13/44] tests/docker: use project specific container registries, Alex Bennée, 2021/07/14
- [PULL v5 42/44] plugins/cache: Added FIFO and LRU eviction policies, Alex Bennée, 2021/07/14
- Re: [PULL v5 00/44] testing, build and plugin updates, Peter Maydell, 2021/07/15