mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +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:
4
Makefile
4
Makefile
@@ -183,14 +183,14 @@ SED := sed
|
|||||||
# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
|
# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
|
||||||
# LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
|
# LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
|
||||||
ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
|
ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
|
||||||
ALL_CFLAGS := -O2
|
ALL_CFLAGS := -Wall -O2
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
ALL_CPPFLAGS += -DDEBUG
|
ALL_CPPFLAGS += -DDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WARN),1)
|
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
|
-Wcast-align -Wwrite-strings -Wnested-externs -Winline
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user