Project

General

Profile

Actions

Bug #10301

closed

pcifm: cast between incompatible function types

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

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

Actions #1

Updated by Electric Monk over 3 years ago

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

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>

Actions

Also available in: Atom PDF