Skip to content
Snippets Groups Projects
Commit 74a3d069 authored by David Bigagli's avatar David Bigagli
Browse files

Enable gcc -Werror flag when compiling in debug mode.

parent ec9708da
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ AC_DEFUN([X_AC_DEBUG], [ ...@@ -32,7 +32,7 @@ AC_DEFUN([X_AC_DEBUG], [
] ]
) )
if test "$x_ac_debug" = yes; then 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" test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Wall -fno-strict-aliasing"
else else
AC_DEFINE([NDEBUG], [1], AC_DEFINE([NDEBUG], [1],
......
...@@ -22148,7 +22148,7 @@ $as_echo "doh!" >&6; } ...@@ -22148,7 +22148,7 @@ $as_echo "doh!" >&6; }
fi fi
   
if test "$x_ac_debug" = yes; then 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" test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -Wall -fno-strict-aliasing"
else else
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment