From 3befb5eb57cb87c550d382d9ee431d9b6c3366fe Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 27 Apr 2025 23:36:34 +0100 Subject: [PATCH] [linux] Enable compiler warnings when building the linux_api.o object Signed-off-by: Michael Brown --- src/Makefile.linux | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile.linux b/src/Makefile.linux index 762437af5..67afd4244 100644 --- a/src/Makefile.linux +++ b/src/Makefile.linux @@ -29,9 +29,13 @@ NON_AUTO_MEDIA = linux # Compiler flags for building host API wrapper # LINUX_CFLAGS += -Os -idirafter include -DSYMBOL_PREFIX=$(SYMBOL_PREFIX) +LINUX_CFLAGS += -Wall -W ifneq ($(SYSROOT),) LINUX_CFLAGS += --sysroot=$(SYSROOT) endif +ifneq ($(NO_WERROR),1) +LINUX_CFLAGS += -Werror +endif # Check for libslirp # -- 2.47.3