Add unused attribute to fix compilation with gcc-4.8
authorJochen Sprickerhof <jochen@sprickerhof.de>
Fri, 28 Feb 2014 10:23:06 +0000 (11:23 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Mon, 2 Dec 2019 18:53:45 +0000 (18:53 +0000)
Gbp-Pq: Name 0008-Add-unused-attribute-to-fix-compilation-with-gcc-4.8.patch

Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h

index d3f16b7322ff417d56c2017c87e19b31b6295f26..0657b7aa6008137b7af8c1fe50f4fda0d4e7cf63 100644 (file)
@@ -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>