10419 ntxn: cast between incompatible function types

Review Request #1488 - Created Feb. 19, 2019 and submitted

Information
Toomas Soome
illumos-gate
10419
1395be3...
Reviewers
general
../../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

  
Toomas Soome
Andrew Stormont
C Fraire
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...