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

configure.ac: fix -Wimplicit-function-declaration in HAVE___FUNCTION_… #55

Merged
merged 2 commits into from
Dec 27, 2022
Merged

configure.ac: fix -Wimplicit-function-declaration in HAVE___FUNCTION_… #55

merged 2 commits into from
Dec 27, 2022

Conversation

thesamesam
Copy link
Contributor

…_ test

This breaks with Clang 16 which makes such errors fatal:

error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]

Signed-off-by: Sam James sam@gentoo.org

…_ test (Clang 16)

Clang 16 will make -Wimplicit-function-declaration
errors by default.
```
error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
```

For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
[3] hosted at lists.linux.dev.

Signed-off-by: Sam James <sam@gentoo.org>
In preparation for C23 which bans these.

Signed-off-by: Sam James <sam@gentoo.org>
@dajobe dajobe merged commit f32f888 into dajobe:master Dec 27, 2022
@thesamesam
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants