You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/08/15 01:38:18 UTC

git commit: THRIFT-2042 visual 2010 warnings - unused variable Patch: Konrad Grochowski

Updated Branches:
  refs/heads/master 8c64dc103 -> d051ca0b2


THRIFT-2042 visual 2010 warnings - unused variable Patch: Konrad Grochowski


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/d051ca0b
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/d051ca0b
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/d051ca0b

Branch: refs/heads/master
Commit: d051ca0b23eab53ede689ba319256e5f30feebf8
Parents: 8c64dc1
Author: Roger Meier <ro...@apache.org>
Authored: Thu Aug 15 01:35:11 2013 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Thu Aug 15 01:37:55 2013 +0200

----------------------------------------------------------------------
 lib/cpp/src/thrift/server/TNonblockingServer.cpp | 2 ++
 lib/cpp/src/thrift/windows/SocketPair.cpp        | 5 +++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/d051ca0b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/server/TNonblockingServer.cpp b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
index 1b77a75..b9553c4 100644
--- a/lib/cpp/src/thrift/server/TNonblockingServer.cpp
+++ b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
@@ -1503,6 +1503,8 @@ void TNonblockingIOThread::setCurrentThreadHighPriority(bool value) {
   } else {
     GlobalOutput.perror("TNonblocking: pthread_setschedparam(): ", THRIFT_GET_SOCKET_ERROR);
   }
+#else
+  THRIFT_UNUSED_VARIABLE(value);
 #endif
 }
 

http://git-wip-us.apache.org/repos/asf/thrift/blob/d051ca0b/lib/cpp/src/thrift/windows/SocketPair.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/windows/SocketPair.cpp b/lib/cpp/src/thrift/windows/SocketPair.cpp
index c5f936b..4b65e6b 100644
--- a/lib/cpp/src/thrift/windows/SocketPair.cpp
+++ b/lib/cpp/src/thrift/windows/SocketPair.cpp
@@ -28,6 +28,7 @@
  */
 
 #include <thrift/windows/SocketPair.h>
+#include <thrift/Thrift.h>
 
 // stl
 #include <string.h>
@@ -37,6 +38,10 @@
 
 int thrift_socketpair(int d, int type, int protocol, THRIFT_SOCKET sv[2])
 {
+    THRIFT_UNUSED_VARIABLE(protocol);
+    THRIFT_UNUSED_VARIABLE(type);
+    THRIFT_UNUSED_VARIABLE(d);
+
     union {
        struct sockaddr_in inaddr;
        struct sockaddr addr;