On Fri, Jul 05, 2024 at 11:36:06 +0700, Robert Elz wrote: > So, now I have all these functions (but one) with an arg they don't > need, and have no use for. > > I could add something stupid like > arg = arg; > or something to use the value (but then the compiler is likely to > warn about arg being assigned a value which is never used) - but > even if that would work, is at least potentially meaningless extra > code generated.
<sys/cdefs.h> defines a no-op __USE() macro that shuts up the warning __USE(var); -uwe