SQLite Forum

Lemon generates code that does not build with NDEBUG defined.
Login
Hi, not sure where to report this so I am trying it here.

The current version of lemon from fossil trunk generates code that does not build with NDEBUG defined (the version packaged in Ubuntu 18.04 has similar problems, which is why I turned to the source in the first place).

assert.h is only included in lempar.c if NDEBUG is *not* defined, but there are assert statements outside of `#ifndef NDEBUG` blocks.

Similarly, yyRuleName is only declared if NDEBUG is *not* defined, but it is referenced outside of an `#ifndef NDEBUG` block.

Greetings,
Christian Henz