Project

General

Profile

Actions

Bug #12117

closed

nscd: cast between incompatible function types

Added by Toomas Soome almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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

Actions

Also available in: Atom PDF