Project

General

Profile

Bug #11789

gld: cast between incompatible function types

Added by Toomas Soome 6 days ago. Updated 4 days ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../common/io/gld.c:2904:10: error: cast between incompatible function types from 'int (*)(queue_t *, mblk_t *)' {aka 'int (*)(struct queue *, struct msgb *)'} to 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} [-Werror=cast-function-type]
       send = (void (*)(queue_t *, mblk_t *))putq;
              ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 4 days ago

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

git commit eb09fcf8417871597746d29fbfa39665d2623d5a

commit  eb09fcf8417871597746d29fbfa39665d2623d5a
Author: Toomas Soome <tsoome@me.com>
Date:   2019-10-11T17:55:54.000Z

    11789 gld: cast between incompatible function types
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Garrett D'Amore <gdamore@damore.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF