-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
narrowing conversion of 'fmax #24865
Comments
What is the output of your configure step? |
I think this looks like a valid warning; the We should not be using I am really interested in the output of that configure step which @IamPete1 requested! |
thank you,Gcc version issue |
Fixed by #24918 |
copter-4.3.8 build fmuv5/CUAV-X7. Compiling firmware shows an issue
/AP_Math/ftype.h:24:24: error: narrowing conversion of 'fmax(fmax(((double)magVar.Vector3::x), ((double)magVar.Vector3::y)), ((double)magVar.Vector3::z))' from 'double' to 'float' inside { } [-Werror=narrowing]
#define fmaxF(x,y) fmax(x,y)
^
../../libraries/AP_NavEKF3/AP_NavEKF3_Outputs.cpp:620:9: note: in expansion of macro 'fmaxF'
fmaxF(fmaxF(magVar.x,magVar.y),magVar.z),
The text was updated successfully, but these errors were encountered: