Project

General

Profile

Bug #9565

ctf: cast between incompatible function types

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2018-05-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build error from gcc 8:

    ../tdata.c: In function 'tdata_free':
    ../tdata.c:394:31: error: cast between incompatible function types from 'int (*)(tdesc_t *, void *)' {aka 'int (*)(struct tdesc *, void *)'} to 'void (*)()' [-Werror=cast-function-type]
      hash_free(td->td_layouthash, (void (*)())tdesc_free_cb, NULL);
                                   ^
    cc1: all warnings being treated as errors

While here, apply the same approach for iidesc_free().

History

#1

Updated by Electric Monk over 1 year ago

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

git commit ea4ea50f064c5468142b24627acad09a41f060cb

commit  ea4ea50f064c5468142b24627acad09a41f060cb
Author: Toomas Soome <tsoome@me.com>
Date:   2018-06-04T08:35:16.000Z

    9565 ctf: cast between incompatible function types
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF