Project

General

Profile

Actions

Bug #12083

closed

libsum: 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:

    ../common/sum-lmd.c: In function 'md5_open':
    ../common/sum-lmd.c:174:18: error: cast between incompatible function types from 'void (*)(MD5_CTX *, const void *, unsigned int)' {aka 'void (*)(struct <anonymous> *, const void *, unsigned int)'} to 'void (*)(void *, const void *, size_t)' {aka 'void (*)(void *, const void *, long unsigned int)'} [-Werror=cast-function-type]
       lmd->updatef = (Lmd_update_f)MD5Update;
                      ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF