Commit ad563aea by Stéphane Graber

Set automake flags and CFLAGS

Set automake's flags to -Wall -Werror as well as the general CFLAGS to -Wall and -Werror when building using gcc. This should catch any regression on build warnings now that we are in a pretty clean state. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 434445ee
...@@ -6,7 +6,7 @@ AC_INIT([lxc], [0.8.0]) ...@@ -6,7 +6,7 @@ AC_INIT([lxc], [0.8.0])
AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config]) AC_CONFIG_AUX_DIR([config])
AM_CONFIG_HEADER([src/config.h]) AM_CONFIG_HEADER([src/config.h])
AM_INIT_AUTOMAKE([-Wno-portability]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
AC_CANONICAL_HOST AC_CANONICAL_HOST
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_GNU_SOURCE AC_GNU_SOURCE
...@@ -182,7 +182,7 @@ AC_PROG_GCC_TRADITIONAL ...@@ -182,7 +182,7 @@ AC_PROG_GCC_TRADITIONAL
AC_PROG_SED AC_PROG_SED
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall -Werror"
fi fi
AC_CONFIG_FILES([ AC_CONFIG_FILES([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment