Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

alanpost
Copy link
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