-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
clang15 prevents automatic conversion of void *
to u64
#4467
Comments
Y7n05h
added a commit
to Y7n05h/bcc
that referenced
this issue
Feb 8, 2023
clang15 prevents implicit type conversion of void * to u64 fix iovisor#4467 Signed-off-by: Y7n05h <[email protected]>
This was referenced Feb 8, 2023
Y7n05h
added a commit
to Y7n05h/bcc
that referenced
this issue
Feb 9, 2023
clang15 prevents implicit type conversion of void * to u64 fix iovisor#4467 Signed-off-by: Y7n05h <[email protected]>
chenhengqi
pushed a commit
that referenced
this issue
Feb 9, 2023
clang15 prevents implicit type conversion of void * to u64 fix #4467 Signed-off-by: Y7n05h <[email protected]>
captain5050
pushed a commit
to captain5050/bcc
that referenced
this issue
Oct 12, 2023
clang15 prevents implicit type conversion of void * to u64 fix iovisor#4467 Signed-off-by: Y7n05h <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When
map.call()
appears in the code, an implicit type conversion fromvoid*
tou64
is required, but this is not allowed in clang15.To reproduce the problem:
You need to use clang15. Then run the
map.call()
example in the documentation.Although I couldn't find this change in the clang15 changelog (maybe I didn't look carefully), it is indeed not allowed.
Here is a comparison of the output of clang14 and clang15 for a similar problem. You can see that in clang14, that's just a warning. But in the output of clang15, we get an error.
The text was updated successfully, but these errors were encountered: