summaryrefslogtreecommitdiff
path: root/multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp
diff options
context:
space:
mode:
authormaya <maya>2017-04-26 14:38:30 +0000
committermaya <maya>2017-04-26 14:38:30 +0000
commit68a377b24181cf154951a4830c6ff5d88d71dab2 (patch)
treeae1d3d3736f964dc69ba6ebd4e385d665e97f20d /multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp
parent0e17b94a1ed6ed8d8ff3fa95d9eeea6277b92565 (diff)
downloadpkgsrc-68a377b24181cf154951a4830c6ff5d88d71dab2.tar.gz
libmp4v2: No longer require a new GCC version
Use -Wno-return-type to silence compiler errors on clang 4.0. patch function prototype to fix error in prototype with GCC 4.5.3: error: prototype for 'Void CMotionVector::setToZero(<type error>)' Successfully tested clang 4.0, GCC 5.4, GCC 4.5.3.
Diffstat (limited to 'multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp')
-rw-r--r--multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp b/multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp
new file mode 100644
index 00000000000..80ebef1b556
--- /dev/null
+++ b/multimedia/libmp4v2/patches/patch-common_video_iso-mpeg4_src_type__basic.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-common_video_iso-mpeg4_src_type__basic.cpp,v 1.1 2017/04/26 14:38:31 maya Exp $
+
+Make GCC 4.5 happier about the prototype
+
+--- common/video/iso-mpeg4/src/type_basic.cpp.orig 2006-08-07 18:26:58.000000000 +0000
++++ common/video/iso-mpeg4/src/type_basic.cpp
+@@ -317,7 +317,7 @@ Void CMotionVector::computeMV ()
+ iHalfY = m_vctTrueHalfPel.y - iMVY * 2;
+ }
+
+-Void CMotionVector::setToZero (Void)
++Void CMotionVector::setToZero ()
+ {
+ memset (this, 0, sizeof (*this));
+ }