Wextra covers multiple warnings including Wunused-parameter, which
triggers a lot of noise without bringing much benefit for this code.

Completly disable Wunused-parameter and suppress Werror for the warnings
we still want to fix.

Signed-off-by: Andrea Bastoni <[email protected]>
---
 hypervisor/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hypervisor/Makefile b/hypervisor/Makefile
index eeeca2eb..54c16c0e 100644
--- a/hypervisor/Makefile
+++ b/hypervisor/Makefile
@@ -26,7 +26,11 @@ LINUXINCLUDE := -I$(src)/arch/$(SRCARCH)/include \
                -I$(src)/../include/arch/$(SRCARCH) \
                -I$(src)/../include
 KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
-KBUILD_CFLAGS := -g -Os -Werror -Wall -Wstrict-prototypes -Wtype-limits \
+KBUILD_CFLAGS := -g -Os -Werror -Wall -Wextra -Wno-unused-parameter \
+                -Wno-error=sign-compare \
+                -Wno-error=old-style-declaration \
+                -Wno-error=builtin-declaration-mismatch \
+                -Wstrict-prototypes -Wtype-limits \
                 -Wmissing-declarations -Wmissing-prototypes \
                 -Wnested-externs -Wno-error=nested-externs \
                 -Wshadow -Wno-error=shadow \
-- 
2.28.0

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-2-andrea.bastoni%40tum.de.

Reply via email to