Project

General

Profile

Actions

Bug #14070

open

vntsd: cast between incompatible function types

Added by Toomas Soome 14 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors on SPARC:

    vntsd.c: In function 'vntsd_reset_timer':
    vntsd.c:174:38: error: cast between incompatible function types from 'boolean_t (*)(vntsd_timeout_t *, thread_t)' {aka 'boolean_t (*)(struct vntsd_timeout *, unsigned int)'} to 'int (*)(void *, void *)' [-Werror=cast-function-type]
      174 |  (void) vntsd_que_find(vntsdp->tmoq, (compare_func_t)reset_timeout,
          |                                      ^
    cc1: all warnings being treated as errors

    cmd.c:253:35: error: cast between incompatible function types from 'int (*)(void)' to 'int (*)(vntsd_client_t *)' {aka 'int (*)(struct vntsd_client *)'} [-Werror=cast-function-type]
      253 |  {'.', "Exit from this console",  (e_func_t)client_exit},
          |                                   ^
    cc1: all warnings being treated as errors

Fix function signature.

Testing done: build/install/boot.

No data to display

Actions

Also available in: Atom PDF