Project

General

Profile

Bug #10833

sppptun: cast between incompatible function types

Added by Toomas Soome 6 months ago. Updated 5 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../common/io/ppp/sppptun/sppptun.c:174: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 (*)())sppptun_urput, /* qi_putp */
      ^
    ../../common/io/ppp/sppptun/sppptun.c:184: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 (*)())sppptun_uwput, /* qi_putp */
      ^
    ../../common/io/ppp/sppptun/sppptun.c:194: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 (*)())sppptun_lrput, /* qi_putp */
      ^
    ../../common/io/ppp/sppptun/sppptun.c:204: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 (*)())sppptun_lwput, /* qi_putp */
      ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 5 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 868fcfe93b967e5d10b7c95ef2d015c8900d607d

commit  868fcfe93b967e5d10b7c95ef2d015c8900d607d
Author: Toomas Soome <tsoome@me.com>
Date:   2019-05-15T07:21:12.000Z

    10833 sppptun: cast between incompatible function types
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF