You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by hc...@apache.org on 2014/11/06 19:55:42 UTC
thrift git commit: THRIFT-2802: cpp - tutorial warnings removed
Repository: thrift
Updated Branches:
refs/heads/master b3f5ffc42 -> 157872dd2
THRIFT-2802: cpp - tutorial warnings removed
Client: C++
Patch: Konrad Grochowski
"unused parameter" warnings removed
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/157872dd
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/157872dd
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/157872dd
Branch: refs/heads/master
Commit: 157872dd21879da84a02fbb7c2ea1816a8454a93
Parents: b3f5ffc
Author: Konrad Grochowski <hc...@apache.org>
Authored: Thu Nov 6 19:55:28 2014 +0100
Committer: Konrad Grochowski <hc...@apache.org>
Committed: Thu Nov 6 19:55:28 2014 +0100
----------------------------------------------------------------------
tutorial/cpp/CppClient.cpp | 2 +-
tutorial/cpp/CppServer.cpp | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/157872dd/tutorial/cpp/CppClient.cpp
----------------------------------------------------------------------
diff --git a/tutorial/cpp/CppClient.cpp b/tutorial/cpp/CppClient.cpp
index 8ef976b..4475338 100644
--- a/tutorial/cpp/CppClient.cpp
+++ b/tutorial/cpp/CppClient.cpp
@@ -33,7 +33,7 @@ using namespace apache::thrift::transport;
using namespace tutorial;
using namespace shared;
-int main(int argc, char** argv) {
+int main() {
boost::shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
http://git-wip-us.apache.org/repos/asf/thrift/blob/157872dd/tutorial/cpp/CppServer.cpp
----------------------------------------------------------------------
diff --git a/tutorial/cpp/CppServer.cpp b/tutorial/cpp/CppServer.cpp
index f7a69e2..133d75d 100644
--- a/tutorial/cpp/CppServer.cpp
+++ b/tutorial/cpp/CppServer.cpp
@@ -109,8 +109,7 @@ protected:
};
-int main(int argc, char **argv) {
-
+int main() {
boost::shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory());
boost::shared_ptr<CalculatorHandler> handler(new CalculatorHandler());
boost::shared_ptr<TProcessor> processor(new CalculatorProcessor(handler));