Project

General

Profile

Actions

Bug #11982

closed

libmail: 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:

    ../common/notifyu.c: In function 'notify':
    ../common/notifyu.c:80:34: error: cast between incompatible function types from 'void (* (*)(void))(int)' to 'void (*)(int)' [-Werror=cast-function-type]
        old = (SIG_PF)signal(SIGALRM, (SIG_PF)catcher);
                                      ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot.

Actions

Also available in: Atom PDF