Actions
Bug #11599
closedptem: cast between incompatible function types
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Build errors with gcc 8:
../../common/io/ptem.c:114:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)()) ptemrput, ^ ../../common/io/ptem.c:124:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)()) ptemwput, ^ ../../common/io/ptem.c:125:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (int (*)()) ptemwsrv, ^ cc1: all warnings being treated as errors
Updated by Toomas Soome about 4 years ago
Testing done: build/install/boot, as part of loader branch.
Updated by Electric Monk about 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit fd121eb4d1d06ebe9153101f4c80d19c65452dd2
commit fd121eb4d1d06ebe9153101f4c80d19c65452dd2 Author: Toomas Soome <tsoome@me.com> Date: 2019-09-03T19:31:57.000Z 11599 ptem: 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