From 5c28497b02f74a982b0102009b0bcca5f41adbef 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 54d2a8c..37f59cc 100644 --- a/urcu/uatomic/generic.h +++ b/urcu/uatomic/generic.h @@ -38,7 +38,7 @@ 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 /* @@ -47,12 +47,12 @@ void _uatomic_link_error() */ __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