From dc8974fee5832caceff2c71af6d77f31d9add7e3 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Mon, 12 Sep 2016 20:55:59 +0200 Subject: [PATCH] libdvbpsi: fix gcc6 build Disable -Wmisleading-indentation as error for gcc-6.x --- srcpkgs/libdvbpsi/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/libdvbpsi/template b/srcpkgs/libdvbpsi/template index 283793b4f13..b0219ac7cd8 100644 --- a/srcpkgs/libdvbpsi/template +++ b/srcpkgs/libdvbpsi/template @@ -11,8 +11,11 @@ distfiles="http://download.videolan.org/pub/libdvbpsi/${version}/${pkgname}-${ve checksum=22436366beaa1bff27b3f6d80e43de1012b16d3b63b1e22d37d4a6fcb5db8933 CFLAGS="-Wno-error=cast-qual" -# gcc6 needs this - disable for now -# CFLAGS+=" -Wno-error=misleading-indentation" +_gccver=$(gcc --version|awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + # Disable error for gcc6 warning -Wmisleading-indentation + CFLAGS+=" -Wno-error=misleading-indentation" +} libdvbpsi-devel_package() { depends="libdvbpsi>=${version}_${revision}"