Index: src/OFApplication.m ================================================================== --- src/OFApplication.m +++ src/OFApplication.m @@ -38,11 +38,11 @@ #endif static OFApplication *app = nil; static void -atexit_handler() +atexit_handler(void) { id delegate = [app delegate]; [delegate applicationWillTerminate]; } Index: src/OFBlock.m ================================================================== --- src/OFBlock.m +++ src/OFBlock.m @@ -121,11 +121,11 @@ const char *name; void *symtab; } module = { 8, sizeof(module), NULL, &symtab }; static void __attribute__((constructor)) -constructor() +constructor(void) { __objc_exec_class(&module); } /* End of ObjC module */ #elif defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__) Index: src/OFDataArray.m ================================================================== --- src/OFDataArray.m +++ src/OFDataArray.m @@ -32,11 +32,11 @@ #import "base64.h" #import "macros.h" /* References for static linking */ -void _references_to_categories_of_OFDataArray() +void _references_to_categories_of_OFDataArray(void) { _OFDataArray_Hashing_reference = 1; }; @implementation OFDataArray Index: src/OFString.m ================================================================== --- src/OFString.m +++ src/OFString.m @@ -52,11 +52,11 @@ extern const uint16_t of_iso_8859_15[256]; extern const uint16_t of_windows_1252[256]; /* References for static linking */ -void _references_to_categories_of_OFString() +void _references_to_categories_of_OFString(void) { _OFString_Hashing_reference = 1; _OFString_URLEncoding_reference = 1; _OFString_XMLEscaping_reference = 1; _OFString_XMLUnescaping_reference = 1; Index: src/foundation-compat.m ================================================================== --- src/foundation-compat.m +++ src/foundation-compat.m @@ -49,11 +49,11 @@ return self; } static void __attribute__((constructor)) -init() +init(void) { Class NSAutoreleasePool = objc_getClass("NSAutoreleasePool"); Class NSObject = objc_getClass("NSObject"); Method alloc_method; Method addObject_method; Index: src/objc_properties.m ================================================================== --- src/objc_properties.m +++ src/objc_properties.m @@ -26,11 +26,11 @@ # define SPINLOCK_HASH(p) ((uintptr_t)p >> 4) & (NUM_SPINLOCKS - 1) static of_spinlock_t spinlocks[NUM_SPINLOCKS]; #endif BOOL -objc_properties_init() +objc_properties_init(void) { #ifdef OF_THREADS size_t i; for (i = 0; i < NUM_SPINLOCKS; i++) Index: src/objc_sync.m ================================================================== --- src/objc_sync.m +++ src/objc_sync.m @@ -47,11 +47,11 @@ "condition!\n", f, __LINE__); \ return 1; \ } BOOL -objc_sync_init() +objc_sync_init(void) { return of_mutex_new(&mutex); } int Index: src/threading.h ================================================================== --- src/threading.h +++ src/threading.h @@ -101,11 +101,11 @@ return YES; #endif } static OF_INLINE void -of_thread_exit() +of_thread_exit(void) { #if defined(OF_HAVE_PTHREADS) pthread_exit(NULL); #elif defined(_WIN32) ExitThread(0);