Actions
Bug #12117
closednscd: cast between incompatible function types
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build errors with gcc 8:
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
Testing done: build/install/boot
Updated by Electric Monk over 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 37395faa43a95e030f79ca75d81f5e4fdfcd2b19
commit 37395faa43a95e030f79ca75d81f5e4fdfcd2b19 Author: Toomas Soome <tsoome@me.com> Date: 2019-12-27T17:21:33.000Z 12117 nscd: cast between incompatible function types Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
Actions