Project

General

Profile

Bug #11728

exacctsys: 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/syscall/exacctsys.c:356:2: error: cast between incompatible function types from 'long int (*)(int,  idtype_t,  id_t,  void *, size_t,  int)' {aka 'long int (*)(int,  enum idtype,  int,  void *, long unsigned int,  int)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())exacct
      ^
    ../../common/syscall/exacctsys.c:370:2: error: cast between incompatible function types from 'long int (*)(int,  idtype_t,  id_t,  void *, size_t,  int)' {aka 'long int (*)(int,  enum idtype,  int,  void *, long unsigned int,  int)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())exacct
      ^
    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 fe9b11956841aaade2b3d01981d7e372b9b613a5

commit  fe9b11956841aaade2b3d01981d7e372b9b613a5
Author: Toomas Soome <tsoome@me.com>
Date:   2019-09-30T20:10:21.000Z

    11728 exacctsys: 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