Project

General

Profile

Bug #11802

xencons: cast between incompatible function types

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

    ../../common/xen/io/xencons.c:165:37: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
       (void) add_avintr(NULL, IPL_CONS, (avfunc)xenconsintr_priv,
                                         ^
    ../../common/xen/io/xencons.c:175:37: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
       (void) rem_avintr(NULL, IPL_CONS, (avfunc)xenconsintr_priv,
                                         ^
    cc1: all warnings being treated as errors

Also available in: Atom PDF