Hi Jernej, There is a discussion about it here:
https://github.com/apache/incubator-nuttx/pull/6779 The issue with previous implementation was it only worked for integers variable. BR, Alan On 9/27/22, Jernej Turnsek <jernej.turn...@gmail.com> wrote: > Hi, > > when compiling LuaJIT on NuttX with new UNUSED macro I get following error: > > LuaJIT/src/lj_frame.h:70:61: error: lvalue required as unary '&' operand > 70 | #define setframe_gc(f, p, tp) (setgcref((f)->fr.func, (p)), > UNUSED(tp)) > > What was the reason to change UNUSED macro from: > > # define UNUSED(a) ((void)(1 || (a))) > > to > > # define UNUSED(a) ((void)(1 || &(a))) > > Thanks, > Jernej >