From 3c6b52f2c0ef93b6c9287db545f39b4da0443336 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 31 Jan 2013 11:31:39 -0500 Subject: [PATCH] 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 --- urcu/uatomic/generic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.34.1