summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark M. Hoffman <mhoffman@lightlink.com>2007-09-16 14:50:37 +0000
committerMark M. Hoffman <mhoffman@lightlink.com>2007-09-16 14:50:37 +0000
commite95e7694f52d271bdfa387d468c6af808a811eb6 (patch)
tree9e217e835880d7b2ac26a5f23abd117408267095 /Makefile
parentab0e8eb73104e10791f24a09b54e1b5d936a7705 (diff)
downloadlm-sensors-git-e95e7694f52d271bdfa387d468c6af808a811eb6.tar.gz
Fix -W options so flex/yacc code compiles completely without warnings. Also,
Use -Wundef everywhere except flex/yacc code, specifically. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4794 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c985497e..36229b94 100644
--- a/Makefile
+++ b/Makefile
@@ -141,13 +141,13 @@ endif
ifeq ($(WARN),1)
ALL_CFLAGS += -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wnested-externs -Winline -W \
- -Wmissing-prototypes
+ -Wmissing-prototypes -Wundef
endif
ALL_CPPFLAGS += $(CPPFLAGS)
ALL_CFLAGS += $(CFLAGS)
-PROGCPPFLAGS := -DETCDIR="\"$(ETCDIR)\"" $(ALL_CPPFLAGS) -Wundef
+PROGCPPFLAGS := -DETCDIR="\"$(ETCDIR)\"" $(ALL_CPPFLAGS)
PROGCFLAGS := $(ALL_CFLAGS)
ARCPPFLAGS := $(ALL_CPPFLAGS)
ARCFLAGS := $(ALL_CFLAGS)