Project

General

Profile

Actions

Bug #11987

closed

libevent: cast between incompatible function types

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

    ../libsysevent.c: In function 'sysevent_bind_subscriber_cmn':
    ../libsysevent.c:2223:7: error: cast between incompatible function types from 'void (*)(void **)' to 'void * (*)(void *)' [-Werror=cast-function-type]
           (void *(*)(void *))subscriber_event_handler,
           ^
    ../libsysevent.c:2242:7: error: cast between incompatible function types from 'void (*)(void **)' to 'void * (*)(void *)' [-Werror=cast-function-type]
           (void *(*)(void *))subscriber_event_handler,
           ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions

Also available in: Atom PDF