mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:33:33 +08:00
Coverity scan code annotations and modeling file
This commit is contained in:
@@ -78,7 +78,9 @@ private:
|
||||
static void validate()
|
||||
{
|
||||
StaticAssert<(BitLen <= (sizeof(StorageType) * 8))>::check();
|
||||
// coverity[result_independent_of_operands : FALSE]
|
||||
assert(max() <= std::numeric_limits<StorageType>::max());
|
||||
// coverity[result_independent_of_operands : FALSE]
|
||||
assert(min() >= std::numeric_limits<StorageType>::min());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user