Project

General

Profile

Bug #10488

nxge: cast between incompatible function types

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

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

    ../../common/io/nxge/nxge_mac.c:6683:9: error: cast between incompatible function types from 'nxge_status_t (*)()' {aka 'unsigned int (*)()'} to 'void (*)()' [-Werror=cast-function-type]
             (fptrv_t)(nxgep->xcvr.check_link),
             ^
    cc1: all warnings being treated as errors

Cast over uintptr_t.

History

#1

Updated by Electric Monk 4 months ago

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

git commit 91f8444216cbe1f7457a80ed179210c918674c8b

commit  91f8444216cbe1f7457a80ed179210c918674c8b
Author: Toomas Soome <tsoome@me.com>
Date:   2019-03-15T20:42:46.000Z

    10488 nxge: cast between incompatible function types
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF