Project

General

Profile

Actions

Bug #11987

closed

libevent: cast between incompatible function types

Added by Toomas Soome almost 2 years ago. Updated almost 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 #1

Updated by Toomas Soome almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk almost 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 55622ceb9a02ebd6f006f047a2447f46c605bb4a

commit  55622ceb9a02ebd6f006f047a2447f46c605bb4a
Author: Toomas Soome <tsoome@me.com>
Date:   2019-12-16T16:36:25.000Z

    11987 libevent: cast between incompatible function types
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF