Project

General

Profile

Actions

Bug #10559

closed

usbms: cast between incompatible function types

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 8:

    ../../common/io/usb/clients/usbms/usbms.c:198:2: error: cast between incompatible function types from 'void (*)()' to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())usbms_rput, /* put procedure not needed */
      ^
    ../../common/io/usb/clients/usbms/usbms.c:199:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())usbms_rserv, /* service procedure */
      ^
    cc1: all warnings being treated as errors

With bunch of cstyle fixes...

Actions

Also available in: Atom PDF