mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
Fix/Suppress remaining Cppcheck warnings (#291)
Fix/suppress the following cppcheck warnings: * arithOperationsOnVoidPointer * uninitMember * const* * shadowVariable * assignmentIntegerToAddress * containerOutOfBounds * pointer-related warnings in Ragel source * missingOverride * memleak * knownConditionTrueFalse * noExplicitConstructor * invalidPrintfArgType_sint * useStlAlgorithm * cstyleCast * clarifyCondition * VSX-related cstyleCast * unsignedLessThanZero Furthermore, we added a suppression list to be used, which also includes the following: * missingIncludeSystem * missingInclude * unmatchedSuppression
This commit is contained in:
committed by
GitHub
parent
a8e43a4c0b
commit
02fc8e3b1c
@@ -340,31 +340,24 @@ TEST(flat_set, iter_interop) {
|
||||
|
||||
TEST(flat_set, compare_ops) {
|
||||
flat_set<u32> f1 = {1, 2, 3, 4, 5};
|
||||
flat_set<u32> f1_copy = f1;
|
||||
flat_set<u32> f2 = {2, 4, 6, 8, 10};
|
||||
|
||||
EXPECT_TRUE(f1 == f1);
|
||||
EXPECT_TRUE(f1 == f1_copy);
|
||||
EXPECT_FALSE(f1 == f2);
|
||||
|
||||
EXPECT_FALSE(f1 != f1);
|
||||
EXPECT_FALSE(f1 != f1_copy);
|
||||
EXPECT_TRUE(f1 != f2);
|
||||
|
||||
EXPECT_FALSE(f1 < f1);
|
||||
EXPECT_FALSE(f1 < f1_copy);
|
||||
EXPECT_TRUE(f1 < f2);
|
||||
|
||||
EXPECT_TRUE(f1 <= f1);
|
||||
EXPECT_TRUE(f1 <= f1_copy);
|
||||
EXPECT_TRUE(f1 <= f2);
|
||||
|
||||
EXPECT_FALSE(f1 > f1);
|
||||
EXPECT_FALSE(f1 > f1_copy);
|
||||
EXPECT_FALSE(f1 > f2);
|
||||
|
||||
EXPECT_TRUE(f1 >= f1);
|
||||
EXPECT_TRUE(f1 >= f1_copy);
|
||||
EXPECT_FALSE(f1 >= f2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user