From 2435aafed9a0e25a6ace13c2ae37d5f25fe12380 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sat, 24 Sep 2016 14:21:47 +0200 Subject: [PATCH] grilo-plugins: fix gcc6 build --- srcpkgs/grilo-plugins/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/grilo-plugins/template b/srcpkgs/grilo-plugins/template index 77fd9bc6b3..a75172d704 100644 --- a/srcpkgs/grilo-plugins/template +++ b/srcpkgs/grilo-plugins/template @@ -17,3 +17,8 @@ license="LGPL-2.1" homepage="http://live.gnome.org/Grilo" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=337669098cddf64a84fa9398aa1d7f994fea84bc5f7f1b348e1288f135713781 + +_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + CXXFLAGS="-Wno-error=format-nonliteral" +fi