fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212892 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_cpp_generator.cc b/compiler/cpp/src/generate/t_cpp_generator.cc
index 4b7fb7b..5071041 100755
--- a/compiler/cpp/src/generate/t_cpp_generator.cc
+++ b/compiler/cpp/src/generate/t_cpp_generator.cc
@@ -3187,6 +3187,12 @@
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 <<