Skip to content

include stdlib.h and stop redeclaring malloc, free in alloc.c - #81

Merged
schmonz merged 1 commit into
notqmail:masterfrom
alanpost:pr-include-malloc
Aug 25, 2019
Merged

include stdlib.h and stop redeclaring malloc, free in alloc.c#81
schmonz merged 1 commit into
notqmail:masterfrom
alanpost:pr-include-malloc

Conversation

@alanpost

Copy link
Copy Markdown
Contributor

This change is necessary for -Wall -Werror, to prevent the following:

./compile alloc.c
alloc.c:3:14: error: conflicting types for built-in function ‘malloc’ [-Werror]
extern char *malloc();
^~~~~~

Which cannot be turned off without also turning off -Werror.

@schmonz
schmonz merged commit 77d5294 into notqmail:master Aug 25, 2019
@alanpost
alanpost deleted the pr-include-malloc branch August 25, 2019 14:16
@DerDakon DerDakon modified the milestones: 1.09, 1.08 Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants