double promotion warning fix or ignore per module

This commit is contained in:
Daniel Agar
2018-07-01 09:36:55 +00:00
committed by Lorenz Meier
parent 11d348ec4f
commit cf74166801
41 changed files with 93 additions and 75 deletions
+1 -1
View File
@@ -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