Protoized old pre-ANSI K&R style definitions

This commit is contained in:
Nobuyoshi Nakada 2020-12-05 14:46:34 +09:00
parent a83a51932d
commit d2b7e1e4b2
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
5 changed files with 8 additions and 8 deletions

View file

@ -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)
);