Browse Source

Add UNUSED macro for suppressing unused-parameter/variable warnings

pull/1089/head
Andrew Waterman 4 years ago
parent
commit
fe63357018
  1. 2
      riscv/common.h

2
riscv/common.h

@ -9,12 +9,14 @@
# define NOINLINE __attribute__ ((noinline))
# define NORETURN __attribute__ ((noreturn))
# define ALWAYS_INLINE __attribute__ ((always_inline))
# define UNUSED __attribute__ ((unused))
#else
# define likely(x) (x)
# define unlikely(x) (x)
# define NOINLINE
# define NORETURN
# define ALWAYS_INLINE
# define UNUSED
#endif
#endif

Loading…
Cancel
Save