mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:23:34 +08:00
Extra warnings for the debug build: -Wfloat-equal -Wconversion. The code was fixed accordingly. No broken tests.
This commit is contained in:
@@ -8,6 +8,14 @@
|
||||
#include <uavcan/transport/transfer_buffer.hpp>
|
||||
|
||||
|
||||
TEST(FloatSpec, Sizes)
|
||||
{
|
||||
uavcan::StaticAssert<sizeof(uavcan::NativeFloatSelector<16>::Type) == 4>::check();
|
||||
uavcan::StaticAssert<sizeof(uavcan::NativeFloatSelector<32>::Type) == 4>::check();
|
||||
uavcan::StaticAssert<sizeof(uavcan::NativeFloatSelector<64>::Type) == 8>::check();
|
||||
uavcan::StaticAssert<sizeof(uavcan::NativeFloatSelector<80>::Type) >= 10>::check();
|
||||
}
|
||||
|
||||
TEST(FloatSpec, Limits)
|
||||
{
|
||||
using uavcan::FloatSpec;
|
||||
|
||||
Reference in New Issue
Block a user