2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00

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
This commit is contained in:
Jean Delvare 2003-06-16 17:05:35 +00:00
parent 390ba37335
commit 2e120f8a2a

View File

@ -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