diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-05 14:46:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-05 14:57:31 +0900 |
commit | d2b7e1e4b24633608aba8ef1e00189b00ea2a1d8 (patch) | |
tree | e50b1be165c5cfa9381426c697e0189c58e5d6f5 /coroutine/copy | |
parent | a83a51932dbc31b549e11b9da8967f2f52a8b07c (diff) |
Protoized old pre-ANSI K&R style definitions
Diffstat (limited to 'coroutine/copy')
-rw-r--r-- | coroutine/copy/Context.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) ); |