-
Notifications
You must be signed in to change notification settings - Fork 127
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
fix(armv8): add missing explicit casts #171
Conversation
Signed-off-by: joaopeixoto13 <[email protected]>
Signed-off-by: joaopeixoto13 <[email protected]>
@joaopeixoto13 Can you explain further why these casts are required? |
@josecm On May 23, this PR introduced additional compiler flags, including |
I understand but I don't have any issue in compiling the current main in my machine. I am using |
I am using the |
This is a minimal version and in need of an update. The compiler to be used should be the one in bao-ci's container. If you compile with this version we shouldn't run into any issues with those flags. |
Understood, I will update the compiler accordingly. However, would it not be more prudent to include these explicit conversions in the code? Or, given that the compiler handles these automatically, do you believe it is unnecessary? |
I think @miguelafsilva5 should answer that. |
I believe that if the most recent compiler does not issue any error you should not include those casts. Otherwise we would also have to include other explictit casts throughout the bao code. Eventually, if those casts are necessary the MISRA analyzer will spot them. |
I'll take @miguelafsilva5 suggestion and close this PR |
No description provided.