Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

yywarn should use warn_buffer not error_buffer

  • Loading branch information...
commit ec6c6df9953745d78577898dd62ab81f38e8dda6 1 parent 5223c0a
@matz matz authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/parse.y
View
6 src/parse.y
@@ -2954,9 +2954,9 @@ yywarn(parser_state *p, const char *s)
n = strlen(s);
c = parser_palloc(p, n + 1);
memcpy(c, s, n + 1);
- p->error_buffer[p->nwarn].message = c;
- p->error_buffer[p->nwarn].lineno = p->lineno;
- p->error_buffer[p->nwarn].column = p->column;
+ p->warn_buffer[p->nwarn].message = c;
+ p->warn_buffer[p->nwarn].lineno = p->lineno;
+ p->warn_buffer[p->nwarn].column = p->column;
}
p->nwarn++;
}
Please sign in to comment.
Something went wrong with that request. Please try again.