Actions
Bug #10487
closednca: cast between incompatible function types
Start date:
2019-03-02
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build error with gcc 8:
../../common/inet/nca/ncaddi.c:144: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)nca_rput, NULL, nca_open, nca_close, NULL, &info ^ ../../common/inet/nca/ncaddi.c:148: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)nca_wput, NULL, nca_open, nca_close, NULL, &info ^ cc1: all warnings being treated as errors
Updated by Electric Monk about 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 63638116bbacd9d275b00b4602da8dca12542a53
commit 63638116bbacd9d275b00b4602da8dca12542a53 Author: Toomas Soome <tsoome@me.com> Date: 2019-03-15T20:11:17.000Z 10487 nca: cast between incompatible function types Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Actions