You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TI's compiler has an option called --float_operations_allowed=32 which will make it refuse to compile code using double point floats. Very useful to avoid accidentally adding several kilobytes to the binary by writing sin instead of sinf for example, or 3.14 instead of 3.14f.
Note that neither UNITY_INCLUDE_PRINT_FORMATTED=0 or UNITY_EXCLUDE_FLOAT_PRINT=1 are satisfactory since that would disable other useful and working features.
TI's compiler has an option called
--float_operations_allowed=32
which will make it refuse to compile code using double point floats. Very useful to avoid accidentally adding several kilobytes to the binary by writingsin
instead ofsinf
for example, or3.14
instead of3.14f
.Building Unity with this option set causes the following error due to https://github.com/ThrowTheSwitch/Unity/blob/master/src/unity.c#L1666
This is the only such case.
There's not a great solution to this because it's impossible to avoid promoting floats to doubles when calling a variadic function.
My suggestion:
Would this be OK?
The text was updated successfully, but these errors were encountered: