Project

General

Profile

Actions

Bug #11595

closed

ufs: cast between incompatible function types

Added by Toomas Soome about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
filesystems (not ZFS)
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with gcc 8:

    ../../common/fs/ufs/ufs_vnops.c: In function 'ufs_putapage':
    ../../common/fs/ufs/ufs_vnops.c:5522:17: error: cast between incompatible function types from 'void (*)(buf_t *)' {aka 'void (*)(struct buf *)'} to 'int (*)()' [-Werror=cast-function-type]
      bp->b_iodone = (int (*)())ufs_iodone;
                     ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Toomas Soome about 4 years ago

Testing done: build/install/boot and using ufs.

Actions #2

Updated by Electric Monk about 4 years ago

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

git commit 2575b44147c38559884d4c042492bb21783cb486

commit  2575b44147c38559884d4c042492bb21783cb486
Author: Toomas Soome <tsoome@me.com>
Date:   2019-09-03T19:57:46.000Z

    11595 ufs: cast between incompatible function types
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF