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
clang-15: incompatible integer to pointer conversion returning 'int' from a function with result type 'pthread_t' #561
Comments
@RinCat I can't reproduce this with clang 15/16. Are you using glibc or something else? |
listout
added a commit
to listout/lxcfs
that referenced
this issue
Sep 5, 2023
Newer compiler like Clang 16 and GCC 14 have certain error enabled by default, namely -Werror=incompatible-function-pointer-types. Which resutls in build error such as: proc_loadavg.c:606:10: error: incompatible integer to pointer conversion returning int from a function with result type pthread_t My supresses the error for now, but a proper fix would be better. Fist discovered on Gentoo linux (bug #894348). Bug: https://bugs.gentoo.org/894348 Closes: lxc#561 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
listout
added a commit
to listout/lxcfs
that referenced
this issue
Sep 5, 2023
Newer compiler like Clang 16 and GCC 14 have certain error enabled by default, namely -Werror=incompatible-function-pointer-types. Which resutls in build error such as: proc_loadavg.c:606:10: error: incompatible integer to pointer conversion returning int from a function with result type pthread_t My patch supresses the error for now, but a proper fix would be better. Fist discovered on Gentoo linux (bug #894348). Bug: https://bugs.gentoo.org/894348 Closes: lxc#561 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
stgraber
pushed a commit
that referenced
this issue
Mar 18, 2024
Newer compiler like Clang 16 and GCC 14 have certain error enabled by default, namely -Werror=incompatible-function-pointer-types. Which resutls in build error such as: proc_loadavg.c:606:10: error: incompatible integer to pointer conversion returning int from a function with result type pthread_t My patch supresses the error for now, but a proper fix would be better. Fist discovered on Gentoo linux (bug #894348). Bug: https://bugs.gentoo.org/894348 Closes: #561 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs type conversion.
The text was updated successfully, but these errors were encountered: