Skip to content

Commit 78177de

Browse files
committed
arm: Update UNUSED()
Fix previous commit - No need to check for GNUC/clang as always true where UNUSED() is defined. Signed-off-by: Peter Barada <peter.barada@gmail.com>
1 parent e3f4ff4 commit 78177de

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

include/nuttx/compiler.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,11 +625,7 @@
625625
/* Indicate that a local variable is not used */
626626

627627
# ifndef UNUSED
628-
# if defined(__clang__) || defined(__GNUC__)
629628
# define UNUSED(a) (void)(a)
630-
# else
631-
# define UNUSED(a) ((void)(1 || &(a)))
632-
# endif
633629
# endif
634630

635631
# if defined(__clang__)

0 commit comments

Comments
 (0)