On 10/4/16, Benjamin Franksen <benjamin.frank...@helmholtz-berlin.de> wrote:
> Hello
>
> I am using the lemon parser generator in a project
> (http://www-csr.bessy.de/control/SoftDist/sequencer/). I updated the
> lemon parser template tools/lempar.c to the latest available version and
> found two problems, reported by gcc:
>
> ./snl.c: In function ‘yy_destructor’:
> ./snl.c:116:36: warning: unused variable ‘presult’ [-Wunused-variable]
>  #define snlParserARG_FETCH  Node **presult  = yypParser->presult

This can be resolved by using the "presult" variable in one of your destructors.

> ./snl.c: In function ‘snlParser’:
> ./snl.c:2446:33: warning: comparison of distinct pointer types lacks a
> cast [enabled by default]
>          while( yypParser->yytos >= &yypParser->yystack

I think the latest trunk check-in may fix this.
https://www.sqlite.org/src/info/3a9d802fda105856

But that fix is untested, as the error handling logic where this code
is found is #ifdef-ed out in SQLite.  Please give the latest a try and
let me know if that fails to fix the problem.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to