Project

General

Profile

Bug #11595

ufs: cast between incompatible function types

Added by Toomas Soome 26 days ago. Updated 13 days ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

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

History

#1

Updated by Toomas Soome 13 days ago

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

#2

Updated by Electric Monk 13 days 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>

Also available in: Atom PDF