-
Notifications
You must be signed in to change notification settings - Fork 787
[XPTI][NFC] Fix -Wconversion
warnings
#18786
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
[XPTI][NFC] Fix -Wconversion
warnings
#18786
Conversation
`-Wconversion` is a must-have flag for us in according with internal guidelines (see `AddSecurityFlags.cmake`), but we have never built with it + `-Werror` so there are multiple places in `xpti` subproject where we did potentially incorrect implicit conversions.
How about we add |
Agree it's a good idea but who is gonna do it :) |
I'll file a ticket for now and can work on it when I get some free time. |
…rror=type-limits]
This appears to be causing compilation issues on my system:
Is this a header inclusion order issue? That looks like the wrong |
Interesting - I tried rebuilding several times and it eventually fixed itself. I suspect there's a missing build dependency on copying the headers to the build directory. It was probably including an old |
-Wconversion
is a must-have flag for us in according with internal guidelines (seeAddSecurityFlags.cmake
), but we have never built with it +-Werror
so there are multiple places inxpti
subproject where we did potentially incorrect implicit conversions.