ClientTest.cpp: fix clang warning
SOURCE_ASSERT_EQUAL() expects to get an expression as first parameter which may become NULL. Passing a known-non-NULL pointer makes no sense and triggers a warning from clang: ClientTestAssert.h:109:50: error: nonnull argument 'copy' compared to NULL [-Werror=nonnull-compare] # define CT_ASSERT_TRUE_CLANG_BUILD(_expression) if (!(_expression)) { exit(1); } ... ^ ClientTest.cpp:859:5: note: in expansion of macro 'SOURCE_ASSERT_EQUAL' SOURCE_ASSERT_EQUAL(©, 0, config.m_dump(client, copy, copyFile));
This commit is contained in:
parent
a53e5289bd
commit
bf3c8d5361
|
@ -856,7 +856,7 @@ bool LocalTests::compareDatabases(const char *refFile, TestingSyncSource ©,
|
|||
|
||||
copyFile = getCurrentTest() + ".B.test.dat";
|
||||
simplifyFilename(copyFile);
|
||||
SOURCE_ASSERT_EQUAL(©, 0, config.m_dump(client, copy, copyFile));
|
||||
CT_ASSERT_EQUAL(0, config.m_dump(client, copy, copyFile));
|
||||
|
||||
return compareDatabases(sourceFile, copyFile);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue