do not compile with -Werror

This commit is contained in:
Nikos Mavrogiannopoulos 2016-08-26 17:13:09 +02:00
parent bc9197d3c8
commit 8d970acc7c
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,13 @@
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

View File

@ -10,7 +10,8 @@ URL: http://www.gnu.org/software/libtasn1/
Source0: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz
Source1: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz.sig
Patch1: libtasn1-3.4-rpath.patch
BuildRequires: bison, pkgconfig
Patch2: libtasn1-4.9-no-werror.patch
BuildRequires: bison, pkgconfig, help2man
BuildRequires: autoconf, automake, libtool
%ifarch %ix86 x86_64 ppc ppc64
BuildRequires: valgrind
@ -53,6 +54,7 @@ data.
%setup -q
%patch1 -p1 -b .rpath
%patch2 -p1 -b .no-werror
%build
autoreconf -v -f --install