Project

General

Profile

Bug #10301

pcifm: cast between incompatible function types

Added by Toomas Soome 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2019-01-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build error with gcc 8:

    ../../common/os/pcifm.c:1495:7: error: cast between incompatible function types from 'void (*)(void *, pci_target_err_t *)' {aka 'void (*)(void *, struct pci_target_err *)'} to 'void (*)(void *, const void *, const errorq_elem_t *)' {aka 'void (*)(void *, const void *, const struct errorq_elem *)'} [-Werror=cast-function-type]
           (errorq_func_t)pci_target_drain, (void *)NULL,
           ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 10 months ago

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

git commit b6e3994c8d3dda9030c4b653901b7d478245d3cb

commit  b6e3994c8d3dda9030c4b653901b7d478245d3cb
Author: Toomas Soome <tsoome@me.com>
Date:   2019-02-04T16:10:10.000Z

    10301 pcifm: cast between incompatible function types
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF