From: Mathieu Desnoyers Date: Thu, 31 Jan 2013 16:31:39 +0000 (-0500) Subject: uatomic: style fix X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c6b52f2c0ef93b6c9287db545f39b4da0443336;p=userspace-rcu.git uatomic: style fix - 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 --- diff --git a/urcu/uatomic/generic.h b/urcu/uatomic/generic.h index bfd9b68..6c97768 100644 --- a/urcu/uatomic/generic.h +++ b/urcu/uatomic/generic.h @@ -38,19 +38,19 @@ extern "C" { #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 /* generate an illegal instruction. Cannot catch this with linker tricks * when optimizations are disabled. */ __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 */