tOutput: Mark args unused when THRIFT_SQUELCH_CONSOLE_OUTPUT
Client: cpp
diff --git a/lib/cpp/src/thrift/TOutput.cpp b/lib/cpp/src/thrift/TOutput.cpp
index 72360af..2d95bd1 100644
--- a/lib/cpp/src/thrift/TOutput.cpp
+++ b/lib/cpp/src/thrift/TOutput.cpp
@@ -85,6 +85,8 @@
f_(heap_buf);
}
free(heap_buf);
+#else
+ THRIFT_UNUSED_VARIABLE(message);
#endif
}
@@ -96,6 +98,8 @@
THRIFT_CTIME_R(&now, dbgtime);
dbgtime[24] = 0;
fprintf(stderr, "Thrift: %s %s\n", dbgtime, msg);
+#else
+ THRIFT_UNUSED_VARIABLE(msg);
#endif
}