Project

General

Profile

Bug #11985

libfakekernel: cast between incompatible function types

Added by Toomas Soome 3 months ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

../common/callout.c: In function 'timeout':
../common/callout.c:49:30: error: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(union sigval)' [-Werror=cast-function-type]
  sev.sigev_notify_function = (sigev_notify_func_t)func;
                              ^

../common/thread.c:73:13: error: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Werror=cast-function-type]
      thr_func = (void *(*)(void *))func;
                 ^
    cc1: all warnings being treated as errors

History

#1

Updated by Toomas Soome 3 months ago

  • Description updated (diff)

Also available in: Atom PDF