Actions
Bug #10537
closedsoftmac: cast between incompatible function types
Start date:
2019-03-12
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build error with gcc 8:
../../common/io/softmac/softmac_dev.c:88: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] (pfi_t)softmac_mod_rput, /* qi_putp */ ^ ../../common/io/softmac/softmac_dev.c:97: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] (pfi_t)softmac_mod_wput, /* qi_putp */ ^ ../../common/io/softmac/softmac_dev.c:98:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (pfi_t)softmac_mod_wsrv, /* qi_srvp */ ^ ../../common/io/softmac/softmac_dev.c:120: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] (pfi_t)softmac_drv_wput, (pfi_t)softmac_drv_wsrv, NULL, NULL, NULL, ^ ../../common/io/softmac/softmac_dev.c:120:27: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type] (pfi_t)softmac_drv_wput, (pfi_t)softmac_drv_wsrv, NULL, NULL, NULL, ^ cc1: all warnings being treated as errors
Updated by Electric Monk over 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit a484bfa2079bc90573ca9a036def78c0cc8aa809
commit a484bfa2079bc90573ca9a036def78c0cc8aa809 Author: Toomas Soome <tsoome@me.com> Date: 2019-03-21T16:23:49.000Z 10537 softmac: cast between incompatible function types Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
Actions