mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +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:
1 parent
390ba37335
commit
2e120f8a2a
1 file changed
+2
-2
@@ -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