]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/threads.c
Remove -Wno-pedantic
[xonotic/netradiant.git] / tools / quake3 / common / threads.c
index 04946dd2f72edfc87566a954fee655d57becd854..b886cb8721a7c8ce5c4fd2096e4f002ddb5c714e 100644 (file)
@@ -576,7 +576,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
                for ( i = 0 ; i < numthreads ; i++ )
                {
                        /* Default pthread attributes: joinable & non-realtime scheduling */
-                       if ( pthread_create( &work_threads[i], &attr, (void*)func, (void*)(size_t)i ) != 0 ) {
+                       if (pthread_create(&work_threads[i], &attr, (void *(*)(void *)) func, (void*)(size_t)i ) != 0 ) {
                                Error( "pthread_create failed" );
                        }
                }