From da28ffe00430f71665a2fbbaf344ad068317a0bd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 19 Feb 2013 18:07:50 -0500 Subject: Enable more GCC warnings. --- diff --git a/configure.ac b/configure.ac index 71d78ab..9e8e2c1 100644 --- a/configure.ac +++ b/configure.ac @@ -26,9 +26,12 @@ PKG_CHECK_MODULES([ZLIB], [zlib]) PKG_CHECK_MODULES([EXPAT], [expat]) if test "x$GCC" = "xyes"; then - GCC_CFLAGS="-Wall -Wextra -Werror -pedantic" + GCC_CFLAGS="-pedantic -Wall -Wextra -Werror" + GCC_CFLAGS="${GCC_CFLAGS} -Wformat=2 -Wswitch -Wswitch-enum" + GCC_CFLAGS="${GCC_CFLAGS} -Wstrict-prototypes -Wmissing-prototypes" fi AC_SUBST(GCC_CFLAGS) AC_CONFIG_FILES([Makefile]) +AC_CONFIG_HEADERS([config.h]) AC_OUTPUT() diff --git a/src/compression.c b/src/compression.c index cf88de6..5f71950 100644 --- a/src/compression.c +++ b/src/compression.c @@ -1,6 +1,7 @@ #include #include #include +#include "compression.h" #include "logging.h" static void -- cgit v0.9.1