Project

General

Profile

Bug #10419

ntxn: cast between incompatible function types

Added by Toomas Soome 10 months ago. Updated 10 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build error with gcc 8:

    ../../common/io/ntxn/unm_nic_main.c: In function 'unm_watchdog':
    ../../common/io/ntxn/unm_nic_main.c:1168:36: error: cast between incompatible function types from 'void (*)(long unsigned int)' to 'void (*)(void *)' [-Werror=cast-function-type]
      adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
                                        ^
    ../../common/io/ntxn/unm_nic_main.c: In function 'unm_nic_resume':
    ../../common/io/ntxn/unm_nic_main.c:1805:36: error: cast between incompatible function types from 'void (*)(long unsigned int)' to 'void (*)(void *)' [-Werror=cast-function-type]
      adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
                                        ^
    ../../common/io/ntxn/unm_nic_main.c: In function 'ntxn_m_start':
    ../../common/io/ntxn/unm_nic_main.c:2282:36: error: cast between incompatible function types from 'void (*)(long unsigned int)' to 'void (*)(void *)' [-Werror=cast-function-type]
      adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
                                        ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 10 months ago

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

git commit b9e319bfd413f32cc39ec7b8ccc527f35712da7f

commit  b9e319bfd413f32cc39ec7b8ccc527f35712da7f
Author: Toomas Soome <tsoome@me.com>
Date:   2019-02-20T20:42:02.000Z

    10419 ntxn: cast between incompatible function types
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF