mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 05:03:35 +08:00
double promotion warning fix or ignore per module
This commit is contained in:
committed by
Lorenz Meier
parent
11d348ec4f
commit
cf74166801
@@ -89,7 +89,7 @@ public:
|
||||
}
|
||||
matrix::Vector<Type, M> getStdDev()
|
||||
{
|
||||
return getVar().pow(0.5);
|
||||
return getVar().pow(0.5f);
|
||||
}
|
||||
private:
|
||||
// attributes
|
||||
|
||||
@@ -34,6 +34,7 @@ px4_add_module(
|
||||
MODULE lib__controllib__controllib_test
|
||||
MAIN controllib_test
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion # TODO: fix in Matrix library Vector::pow()
|
||||
SRCS
|
||||
controllib_test_main.cpp
|
||||
DEPENDS
|
||||
|
||||
Reference in New Issue
Block a user