Skip to content
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

curl-compilers.m4: turn implicit function declarations into errors #1419

Conversation

MarcelRaad
Copy link
Member

@MarcelRaad MarcelRaad commented Apr 14, 2017

This adds -Werror-implicit-function-declaration for GCC 2.95+ so that
these errors are visible at the point where they occur instead of only
at link time.
Implicit function delcarations are illegal in C99 and C++ anyway, and
the same warning has been turned into an error for ICC in commit
3072c5b.

This would have GCC tell the exact location of the source of problems like #1401, for example.

Ref: https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC8
Ref: https://curl.haxx.se/mail/lib-2017-04/0001.html

@mention-bot
Copy link

@MarcelRaad, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yangtse, @bagder and @dfandrich to be potential reviewers.

This adds -Werror-implicit-function-declaration for GCC 2.95+ so that
these errors are visible at the point where they occur instead of only
at link time.
Implicit function delcarations are illegal in C99 and C++ anyway, and
the same warning has been turned into an error for ICC in commit
3072c5b.

Ref: https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC8
Ref: https://curl.haxx.se/mail/lib-2017-04/0001.html
Closes curl#1419
@MarcelRaad MarcelRaad force-pushed the Werror-implicit-function-declaration branch from 6d0db17 to ced7a28 Compare April 15, 2017 19:10
@MarcelRaad
Copy link
Member Author

Thanks!

@MarcelRaad MarcelRaad deleted the Werror-implicit-function-declaration branch April 15, 2017 19:19
@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants