diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index 65cbce4e8d0aa..a604db69b5898 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -625,7 +625,7 @@ /* Indicate that a local variable is not used */ # ifndef UNUSED -# define UNUSED(a) ((void)(1 || &(a))) +# define UNUSED(a) (void)(a) # endif # if defined(__clang__)