X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fuatomic%2Fgeneric.h;fp=urcu%2Fuatomic%2Fgeneric.h;h=6c977689dd315bcb7a72d2e537d45a1af2a1fe97;hb=3c6b52f2c0ef93b6c9287db545f39b4da0443336;hp=bfd9b68f3b14bac2617ede3e51f8285090b05d77;hpb=882f5c6a22a7dcaf4b6d7936e3c3689fb6a506af;p=urcu.git 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 */