THRIFT-2037: More general macro THRIFT_UNUSED_VARIABLE
Client: cpp
Patch: Konrad Grochowski
diff --git a/lib/cpp/src/thrift/Thrift.h b/lib/cpp/src/thrift/Thrift.h
index 03caa9e..7b9a8ad 100644
--- 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 {