From dd091c8af163213e12aa92f61bc4916e0f102633 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 26 Jul 2016 08:45:33 +0200 Subject: [PATCH] configure: don't add -Werror to build flags References: http://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=commit;h=dd091c8af163213e12aa92f61bc4916e0f102633 Fixing: [ 81s] Test_overflow.c: In function 'main': [ 81s] Test_overflow.c:63:45: error: left shift of negative value [-Werror=shift-negative-value] [ 81s] unsigned long num = ((long) UINT_MAX) << 2; [ 81s] ^~ --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7a14e04..066f5fe 100644 --- a/configure.ac +++ b/configure.ac @@ -70,8 +70,6 @@ AC_ARG_ENABLE([gcc-warnings], ) if test "$gl_gcc_warnings" = yes; then - gl_WARN_ADD([-Werror], [WERROR_CFLAGS]) - nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers nw="$nw -Wtraditional" # Warns on #elif which we use often -- 2.6.6