Commit ec6c6df9 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

yywarn should use warn_buffer not error_buffer

parent 5223c0a6
...@@ -2954,9 +2954,9 @@ yywarn(parser_state *p, const char *s) ...@@ -2954,9 +2954,9 @@ yywarn(parser_state *p, const char *s)
n = strlen(s); n = strlen(s);
c = parser_palloc(p, n + 1); c = parser_palloc(p, n + 1);
memcpy(c, s, n + 1); memcpy(c, s, n + 1);
p->error_buffer[p->nwarn].message = c; p->warn_buffer[p->nwarn].message = c;
p->error_buffer[p->nwarn].lineno = p->lineno; p->warn_buffer[p->nwarn].lineno = p->lineno;
p->error_buffer[p->nwarn].column = p->column; p->warn_buffer[p->nwarn].column = p->column;
} }
p->nwarn++; p->nwarn++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment