]> git.zerfleddert.de Git - hmcfgusb/blobdiff - Makefile
Increase compiler-warning level
[hmcfgusb] / Makefile
index 9693ca1284a51bce7443fd539e0050003c763579..cb9fe48ae5b461db91a53c88658624387ea15e2c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,24 @@
 ifeq ($(OPENWRT_BUILD),)
 
 #Normal system
-CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g
+CFLAGS=-Wall -Wextra -Wno-unused-parameter -pedantic
+CFLAGS+= -Wno-unknown-warning-option
+CFLAGS+= -Wformat=2
+CFLAGS+= -Wformat-truncation=2
+CFLAGS+= -Wwrite-strings
+CFLAGS+= -Wnull-dereference
+CFLAGS+= -Wuninitialized
+CFLAGS+= -Wstrict-overflow
+CFLAGS+= -Wdate-time
+CFLAGS+= -Wundef
+CFLAGS+= -Wpacked
+CFLAGS+= -Wduplicated-branches
+CFLAGS+= -Wduplicated-cond
+CFLAGS+= -Wstrict-prototypes
+CFLAGS+= -Wbad-function-cast
+CFLAGS+= -Wold-style-definition
+CFLAGS+= -MMD -O2 -I/opt/local/include -g
+
 LDFLAGS=-L/opt/local/lib
 LDLIBS=-lusb-1.0 -lrt
 CC=gcc
@@ -30,7 +47,7 @@ flash-hmmoduart: $(FLASH_HMMODUART_OBJS)
 flash-ota: $(FLASH_OTA_OBJS)
 
 clean:
-       rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota
+       rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_HMMODUART_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-hmmoduart flash-ota
 
 .PHONY: all clean
 
Impressum, Datenschutz