Project

General

Profile

Bug #12117

Updated by Toomas Soome almost 3 years ago

Build errors with gcc 8: 
 <pre> 
     cache.c:1137:30: error: cast between incompatible function types from 'void (*)(nsc_ctx_t *)' {aka 'void (*)(struct nsc_ctx *)'} to 'void * (*)(void *)' [-Werror=cast-function-type] 
        if (thr_create(NULL, NULL, (void *(*)(void *))revalidate, 
                                   ^ 
     cache.c:1152:30: error: cast between incompatible function types from 'void (*)(nsc_ctx_t *)' {aka 'void (*)(struct nsc_ctx *)'} to 'void * (*)(void *)' [-Werror=cast-function-type] 
        if (thr_create(NULL, NULL, (void *(*)(void *))reaper, 
                                   ^ 
     cache.c: In function 'launch_update': 
     cache.c:1951:34: error: cast between incompatible function types from 'void (*)(nsc_lookup_args_t *)' {aka 'void (*)(struct nsc_lookup_args *)'} to 'void * (*)(void *)' [-Werror=cast-function-type] 
       errnum = thr_create(NULL, NULL, (void *(*)(void*))do_update, 
                                       ^ 
     cc1: all warnings being treated as errors 
 </pre> 

 Testing done: build/install/boot

Back