[SCM] openni2/master: Add 0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch

jspricke-guest at users.alioth.debian.org jspricke-guest at users.alioth.debian.org
Fri Feb 28 10:39:18 UTC 2014


The following commit has been merged in the master branch:
commit 2ceb1c876fd66d5d7b58171f5eb8e1ddc6550b24
Author: Jochen Sprickerhof <jochen at sprickerhof.de>
Date:   Fri Feb 28 11:26:27 2014 +0100

    Add 0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch

diff --git a/debian/patches/0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch b/debian/patches/0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch
new file mode 100644
index 0000000..73658f7
--- /dev/null
+++ b/debian/patches/0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch
@@ -0,0 +1,21 @@
+From: Jochen Sprickerhof <jochen at sprickerhof.de>
+Date: Fri, 28 Feb 2014 11:23:06 +0100
+Subject: Add unused attribute to fix compilation with gcc-4.8
+
+---
+ Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h b/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h
+index d3f16b7..0657b7a 100644
+--- a/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h
++++ b/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h
+@@ -15,7 +15,7 @@
+ #define XN_MASK_LINK "xnLink"
+ 
+ #ifndef XN_COMPILER_ASSERT
+-#define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1]
++#define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1] __attribute__((unused))
+ #endif
+ 
+ template <typename T>
diff --git a/debian/patches/series b/debian/patches/series
index dff0cb2..82b1fc3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0006-rpi-Added-Armv6l-as-new-target-platform-and-created-missing-OniPlatformLinux-Arm.h-header.patch
 0006-Disable-SSE.patch
 0007-Link-NiViewer-against-ptherad-DSO-on-Ubuntu-raring.patch
+0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch

-- 
openni2 packaging



More information about the pkg-multimedia-commits mailing list