Merge pull request #3642 from assimp/fix_gcc_compiler_warning

Fix compiler warning: warning: argument to ... call is the same expre…
pull/3636/head^2
Kim Kulling 2021-02-06 09:53:22 +01:00 committed by GitHub
commit afbe8fb436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ class BlenderIntermediateTest : public ::testing::Test {
// The C++ standard defines and expects this behavior: true if lhs < rhs, false otherwise. // The C++ standard defines and expects this behavior: true if lhs < rhs, false otherwise.
TEST_F(BlenderIntermediateTest, ConversionData_ObjectCompareTest) { TEST_F(BlenderIntermediateTest, ConversionData_ObjectCompareTest) {
Object obj1, obj2; Object obj1, obj2;
strncpy(obj1.id.name, NAME_1, sizeof(NAME_1)); strncpy(obj1.id.name, NAME_1, sizeof(obj1.id.name));
strncpy(obj2.id.name, NAME_2, sizeof(NAME_2)); strncpy(obj2.id.name, NAME_2, sizeof(obj2.id.name));
Blender::ObjectCompare cmp_true_because_first_is_smaller_than_second; Blender::ObjectCompare cmp_true_because_first_is_smaller_than_second;
bool res(cmp_true_because_first_is_smaller_than_second(&obj1, &obj2)); bool res(cmp_true_because_first_is_smaller_than_second(&obj1, &obj2));