From a4acdac8fd3ae6e9049d78006025fee095ed1d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 8 May 2017 15:21:18 +0200 Subject: [PATCH] xbps: fix for gcc-7.1.0 --- srcpkgs/xbps/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 6c25e6dfebc..64af001b50f 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -13,6 +13,9 @@ 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 hostmakedepends="pkg-config" makedepends="zlib-devel libressl-devel libarchive-devel"