Fix compilation for platforms without pthread
Found when compiling ruby for windows-arm64 using msys2 Missing return type for function Init_lock_native_thread lock_native_thread.c:45:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 45 | Init_lock_native_thread(void) | ^ | int
This commit is contained in:
parent
dddf62426b
commit
1ca3482e0a
@ -42,6 +42,7 @@ Init_lock_native_thread(void)
|
||||
}
|
||||
|
||||
#else // HAVE_PTHREAD_H
|
||||
void
|
||||
Init_lock_native_thread(void)
|
||||
{
|
||||
// do nothing
|
||||
|
Loading…
x
Reference in New Issue
Block a user