From b26d75418a4d5455c8bce88120b4d4c74aa62455 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 26 Feb 2018 11:27:45 +0100 Subject: [PATCH] xbps: use -Wno-error for gcc7 --- srcpkgs/xbps/template | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index d591aaca4f0..6c8e1756ea1 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -11,11 +11,7 @@ license="2-clause-BSD" distfiles="https://github.com/voidlinux/xbps/archive/$version.tar.gz" checksum=fb97f78a2d1e78ca7fb74426bbc7edac7af36366491dbcf3b97db3aa1b20a8b7 -# readdir_r is deprecated -CFLAGS="-Wno-error=deprecated-declarations" -if [ "$XBPS_GCC_VERSION_MAJOR" -ge 7 ]; then - CFLAGS+=" -Wno-format-truncation -Wno-implicit-fallthrough -Wno-unsafe-loop-optimizations" -fi +CFLAGS="-Wno-error" hostmakedepends="pkg-config" makedepends="zlib-devel libressl-devel libarchive-devel" @@ -39,7 +35,6 @@ if [ "$CHROOT_READY" ]; then fi do_configure() { - CFLAGS+=" -Wno-error=redundant-decls" HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \ --bindir=/usr/bin ${CHROOT_READY:+--enable-tests} }