libdvbpsi: fix gcc6 build
Disable -Wmisleading-indentation as error for gcc-6.x
This commit is contained in:
parent
891592f58c
commit
dc8974fee5
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue