From 2e120f8a2a139e09cde9b663cf158802cd75fb5b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 16 Jun 2003 17:05:35 +0000 Subject: [PATCH] Make -Wall mandatory. Add -W to optional warnings. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1789 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e389711f..c219dc39 100644 --- a/Makefile +++ b/Makefile @@ -183,14 +183,14 @@ SED := sed # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). # LIBCPPFLAGS/LIBCFLAGS are for shared library objects. ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) -ALL_CFLAGS := -O2 +ALL_CFLAGS := -Wall -O2 ifeq ($(DEBUG),1) ALL_CPPFLAGS += -DDEBUG endif ifeq ($(WARN),1) -ALL_CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \ +ALL_CFLAGS += -W -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \ -Wcast-align -Wwrite-strings -Wnested-externs -Winline endif