diff options
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | src/compression.c | 1 |
2 files changed, 5 insertions, 1 deletions
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 <stdlib.h> #include <string.h> #include <zlib.h> +#include "compression.h" #include "logging.h" static void |