Project

General

Profile

Bug #12107

Updated by Toomas Soome almost 2 years ago

Build errors with gcc 8: 
 <pre> 
     ../common/events.c: In function 'dm_init_event_queue': 
     ../common/events.c:155:4: error: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Werror=cast-function-type] 
         (void *(*)(void *))cb_watch_events, NULL, THR_DAEMON, 
         ^ 
     ../common/events.c:175:7: error: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Werror=cast-function-type] 
            (void *(*)(void *))cb_watch_events, NULL, THR_DAEMON, 
            ^ 
     ../common/events.c: In function 'walk_devtree': 
     ../common/events.c:448:33: error: cast between incompatible function types from 'void (*)(void *)' to 'void * (*)(void *)' [-Werror=cast-function-type] 
           if (thr_create(NULL, NULL, (void *(*)(void *))walker, NULL, 
                                      ^ 
     ../common/events.c: In function 'walk_devtree': 
     ../common/events.c:446:33: error: cast between incompatible function types from 'void (*)(void *)' to 'void * (*)(void *)' [-Werror=cast-function-type] 
           if (thr_create(NULL, NULL, (void *(*)(void *))walker, NULL, 
                                      ^ 
     ../common/inuse_mnt.c:94:34: error: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Werror=cast-function-type] 
        *errp = thr_create(NULL, NULL, (void *(*)(void *))watch_mnttab, 
                                       ^ 
    
     cc1: all warnings being treated as errors 

 </pre> 

 Testing done: build/install/boot 

Back