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 2011/12/10 22:50:10 UTC
svn commit: r1212892 -
/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
Author: roger
Date: Sat Dec 10 21:50:10 2011
New Revision: 1212892
URL: http://svn.apache.org/viewvc?rev=1212892&view=rev
Log:
fix compiler warnings
Modified:
thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
Modified: thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc?rev=1212892&r1=1212891&r2=1212892&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc Sat Dec 10 21:50:10 2011
@@ -3187,6 +3187,12 @@ void t_cpp_generator::generate_process_f
string resultname = tservice->get_name() + "_" + tfunction->get_name() +
"_result";
+ if (tfunction->is_oneway() && !unnamed_oprot_seqid) {
+ out <<
+ indent() << "(void) seqid;" << endl <<
+ indent() << "(void) oprot;" << endl;
+ }
+
out <<
indent() << "void* ctx = NULL;" << endl <<
indent() << "if (this->eventHandler_.get() != NULL) {" << endl <<