projects
/
platform
/
adaptation
/
broadcom
/
libomxil-vc4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b89e9
)
Fix definition of UNUSED(x)
author
Luke Diamand
<luke@diamand.org>
Sat, 30 Apr 2016 15:48:35 +0000
(16:48 +0100)
committer
Luke Diamand
<luke@diamand.org>
Wed, 28 Sep 2016 12:00:23 +0000
(13:00 +0100)
Make UNUSED(x) explicitly cast (x) to void. This fixes a number
of compiler warnings. UNUSED_DEBUG() is now identical to
UNUSED(), and could be removed in a future commit.
See also #188.
interface/khronos/common/khrn_int_common.h
patch
|
blob
|
history
diff --git
a/interface/khronos/common/khrn_int_common.h
b/interface/khronos/common/khrn_int_common.h
index 7d36b9f4854f551de9835288b3e27b140f2db7a2..4d4ff8a4c8930178cc4e328a7ef045979f876812 100644
(file)
--- a/
interface/khronos/common/khrn_int_common.h
+++ b/
interface/khronos/common/khrn_int_common.h
@@
-162,14
+162,10
@@
typedef unsigned long long uint64_t;
#ifdef _MSC_VER
#define UNUSED(X) X
#else
- #define UNUSED(X)
+ #define UNUSED(X)
(void)(X)
#endif
-#ifdef NDEBUG
- #define UNUSED_NDEBUG(X) UNUSED(X)
-#else
- #define UNUSED_NDEBUG(X)
-#endif
+#define UNUSED_NDEBUG(X) UNUSED(X)
#define KHRN_NO_SEMAPHORE 0xffffffff