Project

General

Profile

Actions

Bug #11734

closed

pcic: cast between incompatible function types

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

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

Description

Build errors with gcc 8:

    ../../common/io/pcic.c: In function 'pcic_set_interrupt':
    ../../common/io/pcic.c:4747:7: error: cast between incompatible function types from 'int (*)(int,  ...)' to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
           (ddi_intr_handler_t *)handler->handler;
           ^
    ../../common/io/pcic.c:4760:16: error: cast between incompatible function types from 'int (*)(int,  ...)' to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
       intr->intr = (ddi_intr_handler_t *)handler->handler;
                    ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF