Project

General

Profile

Bug #11729

msgsys: cast between incompatible function types

Added by Toomas Soome 11 months ago. Updated 9 months 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/os/msg.c:135:2: error: cast between incompatible function types from 'ssize_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 (*)())msgsys
      ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot.

History

#1

Updated by Toomas Soome 9 months ago

  • Description updated (diff)
#2

Updated by Electric Monk 9 months ago

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

git commit ac2ff9f2e2eb82a33700967848664529b93c03b0

commit  ac2ff9f2e2eb82a33700967848664529b93c03b0
Author: Toomas Soome <tsoome@me.com>
Date:   2019-11-15T16:56:47.000Z

    11729 msgsys: cast between incompatible function types
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Also available in: Atom PDF