]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[linux] Enable compiler warnings when building the linux_api.o object
authorMichael Brown <mcb30@ipxe.org>
Sun, 27 Apr 2025 22:36:34 +0000 (23:36 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 27 Apr 2025 22:36:34 +0000 (23:36 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.linux

index 762437af53d69fc0a2a2def0cfab321e5d1fc6fc..67afd4244411e37483b67cd051bc7a80f2d1eca2 100644 (file)
@@ -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
 #