mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
Fix grammar file to work around suspected bison 3.0.2 bug
See http://lists.osgeo.org/pipermail/postgis-devel/2014-September/024507.html git-svn-id: http://svn.osgeo.org/postgis/trunk@12946 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
b3e0a4c495
commit
1ebad39775
|
@ -51,6 +51,14 @@ int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int pars
|
|||
|
||||
/* Clean up our global parser result. */
|
||||
lwgeom_parser_result_init(&global_parser_result);
|
||||
/* Work-around possible bug in GNU Bison 3.0.2 resulting in wkt_yylloc
|
||||
* members not being initialized on yyparse() as documented here:
|
||||
* https://www.gnu.org/software/bison/manual/html_node/Location-Type.html
|
||||
* See discussion here:
|
||||
* http://lists.osgeo.org/pipermail/postgis-devel/2014-September/024506.html
|
||||
*/
|
||||
wkt_yylloc.last_column = wkt_yylloc.last_line = \
|
||||
wkt_yylloc.first_column = wkt_yylloc.first_line = 1;
|
||||
|
||||
/* Set the input text string, and parse checks. */
|
||||
global_parser_result.wkinput = wktstr;
|
||||
|
|
Loading…
Reference in a new issue