libdvbpsi: fix build with gcc6

This commit is contained in:
Juergen Buchmueller 2016-09-12 04:55:44 +02:00
parent e6e095b76f
commit 67a96ff2b0
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,23 @@
This uncommon way to use a boolean is not supported by gcc6.
Instead of incrementing by 12 (huh?) just toggle between
false and true.
--- misc/test_dr.h 2013-11-10 13:13:35.000000000 +0100
+++ misc/test_dr.h 2016-09-12 04:52:08.334029901 +0200
@@ -93,13 +93,13 @@
{ \
fprintf(stdout, " \"%s\" boolean check\n", #name); \
i_loop_count = 0; \
- s_decoded.name = 0; \
+ s_decoded.name = false; \
do \
{
#define BOZO_end_boolean(name) \
- s_decoded.name += 12; \
- } while(!i_err && (s_decoded.name <= 12)); \
+ s_decoded.name = !s_decoded.name; \
+ } while(!i_err && s_decoded.name); \
fprintf(stdout, "\r iteration count: %22llu", i_loop_count); \
if(i_err) \
fprintf(stdout, " FAILED !!!\n"); \

View file

@ -1,7 +1,7 @@
# Template file for 'libdvbpsi'
pkgname=libdvbpsi
version=1.1.2
revision=3
revision=4
build_style=gnu-configure
short_desc="PSI decoder and generator library for MPEG2 and DVB streams"
homepage="http://www.videolan.org/developers/libdvbpsi.html"
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://download.videolan.org/pub/libdvbpsi/${version}/${pkgname}-${version}.tar.bz2"
checksum=22436366beaa1bff27b3f6d80e43de1012b16d3b63b1e22d37d4a6fcb5db8933
CFLAGS="-Wno-error=cast-qual"
CFLAGS="-Wno-error=cast-qual -Wno-error=misleading-indentation"
libdvbpsi-devel_package() {
depends="libdvbpsi>=${version}_${revision}"