cmake: disable implicit-fallthrough by default

This commit is contained in:
Vladislav Sovrasov 2017-09-11 16:04:00 +03:00
parent 597b3f4456
commit 32bf712102
3 changed files with 11 additions and 0 deletions

View File

@ -138,6 +138,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
add_extra_compiler_option(-Wno-delete-non-virtual-dtor)
add_extra_compiler_option(-Wno-unnamed-type-template-args)
add_extra_compiler_option(-Wno-comment)
add_extra_compiler_option(-Wno-implicit-fallthrough)
endif()
add_extra_compiler_option(-fdiagnostics-show-option)

View File

@ -2883,7 +2883,9 @@ TEST(Core_KMeans, compactness)
}
EXPECT_NEAR(expected, compactness, expected * 1e-8);
if (K == N)
{
EXPECT_DOUBLE_EQ(compactness, 0.0);
}
}
}
@ -3441,7 +3443,9 @@ TEST(Core_SoftFloat, pow32)
softfloat x32(x.f);
ASSERT_TRUE(pow(zero, -x32).isInf());
if(x32 != one)
{
ASSERT_EQ(pow(zero, x32), zero);
}
}
}
@ -3577,7 +3581,9 @@ TEST(Core_SoftFloat, pow64)
ASSERT_TRUE(pow(zero, -x64).isInf());
if(x64 != one)
{
ASSERT_EQ(pow(zero, x64), zero);
}
}
}

View File

@ -178,7 +178,9 @@ public:
if (ext != "mpg")
{
if (count_prop > 0)
{
EXPECT_EQ(count_gt, count_prop);
}
}
int count_actual = 0;
@ -193,7 +195,9 @@ public:
count_actual += 1;
}
if (count_prop > 0)
{
EXPECT_NEAR(count_gt, count_actual, 1);
}
else
std::cout << "Frames counter is not available. Actual frames: " << count_actual << ". SKIP check." << std::endl;
}