From 512353f8be456f9f8045faafbdb3356a4dbdb8ad Mon Sep 17 00:00:00 2001 From: Eric Lambert Date: Wed, 10 Sep 2014 17:13:45 -0700 Subject: Compile in pedantic mode and fail compilation on warnings. Also cleanup all existing warnings. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 80e1ab4..4b5e6e9 100644 --- a/configure.ac +++ b/configure.ac @@ -42,11 +42,11 @@ esac],[debug=false]) if test x$debug = xtrue ; then DEBUG=1 CXXFLAGS="" - CFLAGS="-O0 -ggdb -g3 -Werror -D_GNU_SOURCE=1" + CFLAGS="-O0 -ggdb -g3 -Werror -D_GNU_SOURCE=1 -Wall -pedantic -std=c99" else DEBUG=0 CXXFLAGS="" - CFLAGS="-O2 -g -Werror -D_GNU_SOURCE=1" + CFLAGS="-O2 -g -Werror -D_GNU_SOURCE=1 -Wall -pedantic -std=c99" fi AC_ARG_ENABLE([gcov], -- cgit v1.2.1