Project

General

Profile

Actions

Bug #10486

closed

keysock: cast between incompatible function types

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-03-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 8:

    ../../common/inet/ip/keysock.c:162: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)keysock_rput, (pfi_t)keysock_rsrv, keysock_open, keysock_close,
      ^
    ../../common/inet/ip/keysock.c:162:23: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (pfi_t)keysock_rput, (pfi_t)keysock_rsrv, keysock_open, keysock_close,
                           ^
    ../../common/inet/ip/keysock.c:167: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)keysock_wput, NULL, NULL, NULL, NULL, &info
      ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF