Index: src/OFSocket.m ================================================================== --- src/OFSocket.m +++ src/OFSocket.m @@ -232,11 +232,11 @@ CloseLibrary(socketBase); } #endif int -OFSocketErrNo() +OFSocketErrNo(void) { #if defined(OF_WINDOWS) switch (WSAGetLastError()) { case WSAEACCES: return EACCES; Index: src/runtime/amiga-library.m ================================================================== --- src/runtime/amiga-library.m +++ src/runtime/amiga-library.m @@ -41,11 +41,11 @@ # define OBJC_M68K_REG(reg) #endif /* This always needs to be the first thing in the file. */ int -_start() +_start(void) { return -1; } #ifdef OF_AMIGAOS_M68K Index: src/runtime/autorelease.m ================================================================== --- src/runtime/autorelease.m +++ src/runtime/autorelease.m @@ -61,11 +61,11 @@ OBJC_ERROR("Failed to create TLS keys!"); } #endif void * -objc_autoreleasePoolPush() +objc_autoreleasePoolPush(void) { #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) uintptr_t count = (uintptr_t)OFTLSKeyGet(countKey); #endif return (void *)count; Index: src/runtime/class.m ================================================================== --- src/runtime/class.m +++ src/runtime/class.m @@ -403,11 +403,11 @@ objc_globalMutex_unlock(); } static void -processLoadQueue() +processLoadQueue(void) { for (size_t i = 0; i < loadQueueCount; i++) { setUpClass(loadQueue[i]); if (loadQueue[i]->info & OBJC_CLASS_INFO_SETUP) { Index: src/runtime/static-instances.m ================================================================== --- src/runtime/static-instances.m +++ src/runtime/static-instances.m @@ -93,11 +93,11 @@ } } } void -objc_forgetPendingStaticInstances() +objc_forgetPendingStaticInstances(void) { free(staticInstancesList); staticInstancesList = NULL; staticInstancesCount = 0; } Index: tests/objc_sync/test.m ================================================================== --- tests/objc_sync/test.m +++ tests/objc_sync/test.m @@ -43,25 +43,25 @@ return nil; } @end int -main() +main(void) { MyThread *t1, *t2; lock = [[OFObject alloc] init]; t1 = [MyThread thread]; - [t1 setName: @"A"]; + t1.name = @"A"; t2 = [MyThread thread]; - [t2 setName: @"B"]; + t2.name = @"B"; [t1 start]; [t2 start]; [t1 join]; [t2 join]; return 0; }