[SCM] openni/master: Add patch to silence asserts

eighthave at users.alioth.debian.org eighthave at users.alioth.debian.org
Mon May 20 03:25:50 UTC 2013


The following commit has been merged in the master branch:
commit 1ac424c19d48f6497a20260c43032e106c8bf65b
Author: Jochen Sprickerhof <jochen at sprickerhof.de>
Date:   Fri Jul 6 14:20:58 2012 +0200

    Add patch to silence asserts

diff --git a/debian/patches/0005-Silence-asserts.patch b/debian/patches/0005-Silence-asserts.patch
new file mode 100644
index 0000000..de659d2
--- /dev/null
+++ b/debian/patches/0005-Silence-asserts.patch
@@ -0,0 +1,21 @@
+From: Jochen Sprickerhof <jochen at sprickerhof.de>
+Date: Wed, 4 Jul 2012 17:42:08 +0200
+Subject: Silence asserts
+
+---
+ Include/Linux-x86/XnPlatformLinux-x86.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Include/Linux-x86/XnPlatformLinux-x86.h b/Include/Linux-x86/XnPlatformLinux-x86.h
+index 835a396..d6dd983 100644
+--- a/Include/Linux-x86/XnPlatformLinux-x86.h
++++ b/Include/Linux-x86/XnPlatformLinux-x86.h
+@@ -164,7 +164,7 @@ typedef size_t				XnSizeT;
+ #define XN_STRINGIFY_HELPER(n) #n
+ 
+ /** Asserts an expression, only on Debug build. */
+-#define XN_ASSERT(x)
++#define XN_ASSERT(x) ((void)(x))
+ 
+ //---------------------------------------------------------------------------
+ // API Export/Import Macros
diff --git a/debian/patches/series b/debian/patches/series
index 545b654..c331eb6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Add-SONAME-to-libraries.patch
 0003-Change-path-of-config-files-to-etc-openni.patch
 0004-Disable-SSE.patch
+0005-Silence-asserts.patch

-- 
openni packaging



More information about the pkg-multimedia-commits mailing list