Bug #11595
ufs: cast between incompatible function types
Added by Toomas Soome over 1 year ago.
Updated over 1 year ago.
Category:
filesystems (not ZFS)
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
Testing done: build/install/boot and using ufs.
- 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