aboutsummaryrefslogtreecommitdiff
path: root/src/lib/mathlib/math/Vector.hpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-13 16:27:30 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-13 16:27:30 +0200
commitf219c05f0f53ee8b8f5dbe24318678be6c255dd9 (patch)
tree1e7a3a9692c6ca2bde130e48e3e476fb0c907d18 /src/lib/mathlib/math/Vector.hpp
parent17c5e925fb928d9c0926d8495a2db7a7b464c15f (diff)
downloadpx4-firmware-f219c05f0f53ee8b8f5dbe24318678be6c255dd9.tar.gz
px4-firmware-f219c05f0f53ee8b8f5dbe24318678be6c255dd9.tar.bz2
px4-firmware-f219c05f0f53ee8b8f5dbe24318678be6c255dd9.zip
Fix a set of C++ warnings in mathlib
Diffstat (limited to 'src/lib/mathlib/math/Vector.hpp')
-rw-r--r--src/lib/mathlib/math/Vector.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp
index c7323c215..5017b7c79 100644
--- a/src/lib/mathlib/math/Vector.hpp
+++ b/src/lib/mathlib/math/Vector.hpp
@@ -69,10 +69,13 @@ public:
/**
* trivial ctor
- * note that this ctor will not initialize elements
+ * initializes elements to zero
*/
- VectorBase() {
- arm_col = {N, 1, &data[0]};
+ VectorBase() :
+ data{},
+ arm_col{N, 1, &data[0]}
+ {
+
}
/**