From fcb2ff43a40299234d4bd454bee38b5b9754d2c0 Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Sat, 5 Sep 2020 17:00:50 +0200 Subject: [PATCH] Increase compiler-warning level --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ffe9673..cb9fe48 100644 --- 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 -- 2.39.5