Project

General

Profile

Actions

Bug #12079

closed

audit_plugins: cast between incompatible function types

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

../transport.c:936:41: error: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Werror=cast-function-type]
  (void) pthread_create(&recv_tid, NULL, (void *(*)(void *))recv_record,
                                         ^
cc1: all warnings being treated as errors

Testing done: build/install/boot. Should be enough because we only did change the function signature.

Actions #1

Updated by Toomas Soome almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk almost 2 years ago

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

git commit 3c19a1689122901345a6089d081aa2de4a1096da

commit  3c19a1689122901345a6089d081aa2de4a1096da
Author: Toomas Soome <tsoome@me.com>
Date:   2019-12-18T17:33:02.000Z

    12079 audit_plugins: cast between incompatible function types
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF