Project

General

Profile

Bug #11732

portfs: cast between incompatible function types

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

    ../../common/fs/portfs/port.c:389:2: error: cast between incompatible function types from 'int64_t (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'long int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())portfs,
      ^
    ../../common/fs/portfs/port.c:405:2: error: cast between incompatible function types from 'int64_t (*)(uint32_t,  int32_t,  uint32_t,  uint32_t,  uint32_t,  uint32_t)' {aka 'long int (*)(unsigned int,  int,  unsigned int,  unsigned int,  unsigned int,  unsigned int)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())portfs32,
      ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk about 1 year ago

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

git commit 660213e2089ab8409d54154d0a2987504a24fb23

commit  660213e2089ab8409d54154d0a2987504a24fb23
Author: Toomas Soome <tsoome@me.com>
Date:   2019-10-01T09:35:40.000Z

    11732 portfs: cast between incompatible function types
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF