Project

General

Profile

Actions

Bug #10538

closed

sppp: 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-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 8:

../../common/io/ppp/sppp/sppp_mod.c:96: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 (*)())sppp_uwput, /* qi_putp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:97:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_uwsrv, /* qi_srvp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:106: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 (*)())sppp_lrput, /* qi_putp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:107:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_lrsrv, /* qi_srvp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:117:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_lwsrv, /* qi_srvp */
  ^
cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF