Project

General

Profile

Bug #10835

tl: 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/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

History

#1

Updated by Electric Monk 5 months ago

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

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>

Also available in: Atom PDF