THRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall...
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 20 Sep 2010 17:41:40 +0000 (17:41 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 20 Sep 2010 17:41:40 +0000 (17:41 +0000)
Forgot a small chunk of the previous patch.

Patch: Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999019 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_hs_generator.cc

index 4ddd8cd..7b178df 100644 (file)
@@ -574,7 +574,7 @@ void t_hs_generator::generate_hs_struct_reader(ofstream& out, t_struct* tstruct)
   // read
   indent(out) << "read_"<<sname<<" iprot = do" << endl;
   indent_up();
-  indent(out) << "readStructBegin iprot" << endl;
+  indent(out) << "_ <- readStructBegin iprot" << endl;
   indent(out) << "rec <- read_"<<sname<<"_fields iprot ("<<sname<<"{";
   bool first = true;
   for (f_iter = fields.begin(); f_iter != fields.end(); ++f_iter) {