Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9df0140
)
THRIFT-2037: More general macro THRIFT_UNUSED_VARIABLE
author
Ben Craig
<bencraig@apache.org>
Thu, 29 Aug 2013 15:38:25 +0000
(10:38 -0500)
committer
Ben Craig
<bencraig@apache.org>
Thu, 29 Aug 2013 15:38:25 +0000
(10:38 -0500)
Client: cpp
Patch: Konrad Grochowski
lib/cpp/src/thrift/Thrift.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/thrift/Thrift.h
b/lib/cpp/src/thrift/Thrift.h
index
03caa9e
..
7b9a8ad
100644
(file)
--- a/
lib/cpp/src/thrift/Thrift.h
+++ b/
lib/cpp/src/thrift/Thrift.h
@@
-69,7
+69,7
@@
#define THRIFT_OVERLOAD_IF(T, Y) \
THRIFT_OVERLOAD_IF_DEFN(T, Y) = NULL
-#define THRIFT_UNUSED_VARIABLE(x) ((
x)=
(x))
+#define THRIFT_UNUSED_VARIABLE(x) ((
void)
(x))
namespace apache { namespace thrift {