Repository navigation
Fixed function detection. check_function failed to compile due to clang -Wint-conversion warning became error. - #1269
Merged
Conversation
pgaskin
approved these changes
Jul 15, 2023
pgaskin
left a comment
Member
There was a problem hiding this comment.
LGTM.
The -Wint-conversion warning diagnostic for implicit int <-> pointer conversions now defaults to an error in all C language modes. It may be downgraded to a warning with -Wno-error=int-conversion, or disabled entirely with -Wno-int-conversion.
Member
…ng -Wint-conversion warning became error.
flyingmutant
force-pushed
the
clang-build-fix
branch
from
July 15, 2023 16:20
a4c9e5e to
0e07ddc
Compare
freebsd-git
pushed a commit
to freebsd/freebsd-ports
that referenced
this pull request
Jan 15, 2024
Apply uptream patch to fix function detection. check_function failed to compile due to clang -Wint-conversion warning became error. See also: cmus/cmus#1269 PR: 276318 Reported by: Ivan <[email protected]>
camachat
pushed a commit
to camachat/freebsd-ports
that referenced
this pull request
Jul 22, 2026
Apply uptream patch to fix function detection. check_function failed to compile due to clang -Wint-conversion warning became error. See also: cmus/cmus#1269 PR: 276318 Reported by: Ivan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In recent clang version the -Wint-conversion warning became an error. So the function detection doesn't work anymore.
Compiling this code with clang
char resizeterm(); int main(int argc, char *argv[]) { return resizeterm; }results in error:
main.c:1:62: error: incompatible pointer to integer conversion returning 'char ()' from a function with result type 'int' [-Wint-conversion]