THRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall -Werror

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
This commit is contained in:
Bryan Duxbury 2010-09-20 17:41:40 +00:00
parent e59a80fbf9
commit f38b2f10fb

View 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) {