Hack to avoid `unused variable'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4577 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -297,8 +297,9 @@ generate_type_decode (Symbol *s)
|
||||
fprintf (codefile,
|
||||
"size_t ret = 0, reallen;\n"
|
||||
"size_t l;\n"
|
||||
"int e, i;\n\n");
|
||||
|
||||
"int i, e;\n\n");
|
||||
fprintf(codefile, "i = 0;\n"); /* hack to avoid `unused variable' */
|
||||
|
||||
decode_type ("data", s->type);
|
||||
fprintf (codefile,
|
||||
"if(size) *size = ret;\n"
|
||||
|
@@ -240,6 +240,7 @@ generate_type_encode (Symbol *s)
|
||||
"size_t ret = 0;\n"
|
||||
"size_t l;\n"
|
||||
"int i, e;\n\n");
|
||||
fprintf(codefile, "i = 0;\n"); /* hack to avoid `unused variable' */
|
||||
|
||||
encode_type ("data", s->type);
|
||||
fprintf (codefile, "*size = ret;\n"
|
||||
|
Reference in New Issue
Block a user