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

Cast via uintptr_t function pointer between object pointer #68

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

nobu
Copy link
Member

@nobu nobu commented Oct 10, 2024

With gcc 13 and -pedantic:

In file included from ../../../src/ext/digest/digest.c:16:
../../../src/ext/digest/digest.h: In function ‘rb_digest_make_metadata’:
../../../src/ext/digest/digest.h:83:19: error: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
   83 |         wrapper = (wrapper_func_type)rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata");
      |                   ^

@nobu nobu requested a review from knu as a code owner October 10, 2024 02:37
@nobu nobu merged commit 937d4bf into ruby:master Oct 10, 2024
34 checks passed
@nobu nobu deleted the c2x-pedantic branch October 10, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants