aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-30 16:25:16 +0200
committerHolger Freyther <holger@freyther.de>2016-10-03 10:02:17 +0000
commit6348aea6a2cdc753021e5324a0dd2aecf8791f10 (patch)
treecb1e428743b82b56688540b63c7470f158e56812
parentda66f71ffeee47575d0fc0c3c2c6fb304d50e3cc (diff)
build: add -Wall
I noticed that unused variables are not complained about by the build. Let's add -Wall. I also noticed that the Makefile.ams include STD_DEFINES_AND_INCLUDES, which is never set in configure.ac, so using that to add -Wall to all build contexts. Change-Id: I16711cf5a1ef8bd611074b3dd486ed7a0ae9df64
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 950be230..022a7f76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,9 @@ AC_MSG_CHECKING([whether to enable VTY tests])
AC_MSG_RESULT([$enable_vty_tests])
AM_CONDITIONAL(ENABLE_VTY_TESTS, test "x$enable_vty_tests" = "xyes")
+STD_DEFINES_AND_INCLUDES="-Wall"
+AC_SUBST(STD_DEFINES_AND_INCLUDES)
+
AC_OUTPUT(
src/Makefile
examples/Makefile