From: Jochen Sprickerhof Date: Fri, 28 Feb 2014 10:23:06 +0000 (+0100) Subject: Add unused attribute to fix compilation with gcc-4.8 X-Git-Tag: archive/raspbian/2.2.0.33+dfsg-11+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7e26d6585608f503193c4a84d2484da87693e084;p=openni2.git Add unused attribute to fix compilation with gcc-4.8 Gbp-Pq: Name 0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch --- 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