mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 19:43:35 +08:00
Remove asserts for unsigned integer >= 0
GCC 10 gives a warning "comparison of unsigned expression in ‘>= 0’ is always true" for these asserts since checking if an unsigned integer cannot be negative and hence the statement gets droped.
This commit is contained in:
committed by
Julian Kent
parent
0fd99c59f1
commit
7a3009f7a3
@@ -42,7 +42,6 @@ public:
|
||||
|
||||
inline const Type &operator()(size_t i) const
|
||||
{
|
||||
assert(i >= 0);
|
||||
assert(i < M);
|
||||
|
||||
const MatrixM1 &v = *this;
|
||||
@@ -51,7 +50,6 @@ public:
|
||||
|
||||
inline Type &operator()(size_t i)
|
||||
{
|
||||
assert(i >= 0);
|
||||
assert(i < M);
|
||||
|
||||
MatrixM1 &v = *this;
|
||||
|
||||
Reference in New Issue
Block a user