Project

General

Profile

Bug #10190

aphysio: cast between incompatible function types

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

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Issue found by gcc 8 build:

    ../../common/os/aio_subr.c: In function 'aphysio':
    ../../common/os/aio_subr.c:134:18: error: cast between incompatible function types from 'void (*)(struct buf *)' to 'int (*)()' [-Werror=cast-function-type]
       bp->b_iodone = (int (*)()) aio_done;
                      ^
    cc1: all warnings being treated as errors
    *** Error code 1

History

#1

Updated by Electric Monk 6 months ago

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

git commit 1b9bce10d88d75c318f27b82ba816b744c6f1075

commit  1b9bce10d88d75c318f27b82ba816b744c6f1075
Author: Toomas Soome <tsoome@me.com>
Date:   2019-01-18T02:15:57.000Z

    10190 aphysio: cast between incompatible function types
    Reviewed by: Andy Fiddaman <af@citrus-it.net>
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF