- Functions that don't take arguments should be "void" in C, otherwise
those functions can take a variable number of arguments.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR
static inline __attribute__((always_inline))
-void _uatomic_link_error()
+void _uatomic_link_error(void)
{
#ifdef ILLEGAL_INSTR
/*
*/
__asm__ __volatile__(ILLEGAL_INSTR);
#else
- __builtin_trap ();
+ __builtin_trap();
#endif
}
#else /* #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR */
-extern void _uatomic_link_error ();
+extern void _uatomic_link_error(void);
#endif /* #else #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR */
/* cmpxchg */