From 74a3d069656acc2721ff035f9af034ced35b8655 Mon Sep 17 00:00:00 2001 From: David Bigagli <david@schedmd.com> Date: Wed, 21 Aug 2013 17:00:50 -0700 Subject: [PATCH] Enable gcc -Werror flag when compiling in debug mode. --- auxdir/x_ac_debug.m4 | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auxdir/x_ac_debug.m4 b/auxdir/x_ac_debug.m4 index 8e919613001..1ffb5aec0c5 100644 --- a/auxdir/x_ac_debug.m4 +++ b/auxdir/x_ac_debug.m4 @@ -32,7 +32,7 @@ AC_DEFUN([X_AC_DEBUG], [ ] ) if test "$x_ac_debug" = yes; then - test "$GCC" = yes && CFLAGS="$CFLAGS -Wall -fno-strict-aliasing" + test "$GCC" = yes && CFLAGS="$CFLAGS -Wall -Werror -fno-strict-aliasing" test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Wall -fno-strict-aliasing" else AC_DEFINE([NDEBUG], [1], diff --git a/configure b/configure index 16f3d12830d..044e04fe19c 100755 --- a/configure +++ b/configure @@ -22148,7 +22148,7 @@ $as_echo "doh!" >&6; } fi if test "$x_ac_debug" = yes; then - test "$GCC" = yes && CFLAGS="$CFLAGS -Wall -fno-strict-aliasing" + test "$GCC" = yes && CFLAGS="$CFLAGS -Wall -Werror -fno-strict-aliasing" test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Wall -fno-strict-aliasing" else -- GitLab