From d2b7e1e4b24633608aba8ef1e00189b00ea2a1d8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 5 Dec 2020 14:46:34 +0900 Subject: Protoized old pre-ANSI K&R style definitions --- coroutine/copy/Context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coroutine') diff --git a/coroutine/copy/Context.c b/coroutine/copy/Context.c index f6cf462282..aa8bb2ff05 100644 --- a/coroutine/copy/Context.c +++ b/coroutine/copy/Context.c @@ -17,7 +17,7 @@ #if defined(__sparc) __attribute__((noinline)) // https://marc.info/?l=linux-sparc&m=131914569320660&w=2 -static void coroutine_flush_register_windows() { +static void coroutine_flush_register_windows(void) { __asm__ #ifdef __GNUC__ __volatile__ @@ -34,11 +34,11 @@ static void coroutine_flush_register_windows() { ; } #else -static void coroutine_flush_register_windows() {} +static void coroutine_flush_register_windows(void) {} #endif __attribute__((noinline)) -void *coroutine_stack_pointer() { +void *coroutine_stack_pointer(void) { return (void*)( (char*)__builtin_frame_address(0) ); -- cgit v1.2.3