Project

General

Profile

Actions

Bug #10835

closed

tl: cast between incompatible function types

Added by Toomas Soome about 4 years ago. Updated about 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build errors with gcc 8:

    ../../common/io/tl.c:712:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())tl_rsrv, /* qi_srvp */
      ^
    ../../common/io/tl.c:721: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 (*)())tl_wput, /* qi_putp */
      ^
    ../../common/io/tl.c:722:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())tl_wsrv, /* qi_srvp */
      ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 4 years ago

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

git commit cb492d90e7b22eb1b91a8577423f86ba447d2732

commit  cb492d90e7b22eb1b91a8577423f86ba447d2732
Author: Toomas Soome <tsoome@me.com>
Date:   2019-05-15T19:41:24.000Z

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

Actions

Also available in: Atom PDF