Project

General

Profile

Bug #11595

ufs: cast between incompatible function types

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

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

Also available in: Atom PDF