Project

General

Profile

Bug #10536

st: cast between incompatible function types

Added by Toomas Soome 7 months ago. Updated 7 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build error with gcc 8:

    ../../common/io/scsi/targets/st.c: In function 'st_start':
    ../../common/io/scsi/targets/st.c:6493:16: error: cast between incompatible function types from 'int (*)(char *)' to 'void (*)()' [-Werror=cast-function-type]
         func fnc = (func)st_runout;
                    ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 7 months ago

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

git commit 1ef1b39822f02981cf693197a94ee81aa30c1c26

commit  1ef1b39822f02981cf693197a94ee81aa30c1c26
Author: Toomas Soome <tsoome@me.com>
Date:   2019-03-21T16:19:00.000Z

    10536 st: cast between incompatible function types
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Rob Johnston <rob.johnston@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF