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
This commit is contained in:
Neels Hofmeyr 2016-09-30 16:25:16 +02:00 committed by Holger Freyther
parent da66f71ffe
commit 6348aea6a2
1 changed files with 3 additions and 0 deletions

View File

@ -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