Project

General

Profile

Actions

Bug #10419

closed

ntxn: cast between incompatible function types

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

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

100%

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

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

Actions

Also available in: Atom PDF