THRIFT-3246 Reduce the number of trivial warnings in Windows C++ CMake builds
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
This closes #553
diff --git a/lib/cpp/test/TNonblockingServerTest.cpp b/lib/cpp/test/TNonblockingServerTest.cpp
index 9488091..8f4ef6e 100644
--- a/lib/cpp/test/TNonblockingServerTest.cpp
+++ b/lib/cpp/test/TNonblockingServerTest.cpp
@@ -38,7 +38,7 @@
// dummy overrides not used in this test
int32_t incrementGeneration() { return 0; }
int32_t getGeneration() { return 0; }
- void getDataWait(std::string&, int32_t) {}
+ void getDataWait(std::string&, const int32_t) {}
void onewayWait() {}
void exceptionWait(const std::string&) {}
void unexpectedExceptionWait(const std::string&) {}
@@ -53,7 +53,7 @@
error = false;
try {
server->serve();
- } catch (const TException& x) {
+ } catch (const TException&) {
error = true;
}
}
@@ -95,7 +95,7 @@
if (userEventBase_) {
try {
server->registerEvents(userEventBase_.get());
- } catch (const TException& x) {
+ } catch (const TException&) {
// retry with next port
continue;
}