summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-08-27 16:13:25 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-08-27 16:13:25 +0000
commit33073e51a940248817fc33948d84e5492902a473 (patch)
tree4305ccfaa1ac66f96ec059228802047196964b78 /Makefile
parent99463754103be48aedfa9bcc83a57a62729cfc17 (diff)
add --enable-dev-mode support, and fix up a couple of warnings found using it (only two, surprisingly)
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4845 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fbc1d61..2dc7456 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,10 @@ ifneq (,$(findstring x86_64,$(UNAME_M)))
CFLAGS+=-m64
endif
+ifeq ($(DAHDI_DEVMODE),yes)
+ CFLAGS+=-Werror -Wunused -Wundef $(DAHDI_DECLARATION_AFTER_STATEMENT) -Wmissing-format-attribute -Wformat-security #-Wformat=2
+endif
+
ROOT_PREFIX=
# extra cflags to build dependencies. Recursively expanded.