-
Notifications
You must be signed in to change notification settings - Fork 3.7k
va_start behavior in uv_loop_configure is undefined. #978
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
Comments
I assume the fix is to rewrite it to Out of curiosity, with what clang version is that? 3.9.0? |
@bnoordhuis Thanks for the reply.
|
Can you explain when it would make a material difference?
That would break source compatibility so it's not an option for the v1.x branch but it could be considered for the v2.x branch. |
|
That particular warning seems to have been taken out of clang again and we don't build with No action appears necessary at this time so I'm going to close this out. Please leave a comment or open a pull request if this affects you. |
…otion rules regarding va_start, seems similar to libuv/libuv#978;
there is a a
-Wvarargs
warning when compilinglibuv
with clang.Note that
option
type isuv_loop_option
which is an enum. This violates the promotion rulesfor passing the value to
va_start
, so the behavior ofva_start
is undefined here. From C standard 7.16.1.4:For more details, you can refer to https://www.securecoding.cert.org/confluence/display/cplusplus/EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start.
The text was updated successfully, but these errors were encountered: