Here is the fix: https://github.com/apache/nuttx/pull/11734. sqlite porting is also upstreamed: https://github.com/apache/nuttx-apps/pull/2297
On Tue, Feb 20, 2024 at 3:17 PM Jernej Turnsek <jernej.turn...@gmail.com> wrote: > Hi, > > the same problem as new UNUSED macro was causing me problems when building > external libraries, like LuaJIT, an assert macro is also causing problems > when building Sqlite3 library. Sqlite code has a lot of assert statements > which are usually excluded when NDEBUG is set. But when assert is defined > as: > > #ifdef NDEBUG > # define assert(f) ((void)(1 || (f))) > # define VERIFY(f) assert(f) > #else > > compiler throws undefined variable errors all the time. With simple (void)0 > definition there is no problem. Yet another reason to evaluate this change > of UNUSED and assert macro? > > Jernej >