diff options
author | P. J. McDermott <pjm@nac.net> | 2013-02-19 18:07:50 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-02-19 18:07:50 (EST) |
commit | da28ffe00430f71665a2fbbaf344ad068317a0bd (patch) | |
tree | 4e9e3f6dc4b51a003579791676cd0fbfa0d09fd8 | |
parent | 227b7bcc5ef1fefab5e01b785dcaf71cdba4a07c (diff) | |
download | overworld-rpg-da28ffe00430f71665a2fbbaf344ad068317a0bd.zip overworld-rpg-da28ffe00430f71665a2fbbaf344ad068317a0bd.tar.gz overworld-rpg-da28ffe00430f71665a2fbbaf344ad068317a0bd.tar.bz2 |
Enable more GCC warnings.
-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 |