Commit 82e29df0 authored by Boudewijn Rempt's avatar Boudewijn Rempt

warning--

[171/4490] Building CXX object libs/odf/tests/CMakeFiles/TestStorage.dir/TestStorage.cpp.o
/home/boud/dev/krita/libs/odf/tests/TestStorage.cpp: In member function ‘void TestStorage::storage()’:
/home/boud/dev/krita/libs/odf/tests/TestStorage.cpp:85:15: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
         system(ba.constData());       // QDir::rmdir isn't recursive!
         ~~~~~~^~~~~~~~~~~~~~~~
/home/boud/dev/krita/libs/odf/tests/TestStorage.cpp: In member function ‘void TestStorage::storage2()’:
/home/boud/dev/krita/libs/odf/tests/TestStorage.cpp:218:15: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
         system(ba.constData());       // QDir::rmdir isn't recursive!
         ~~~~~~^~~~~~~~~~~~~~~~
parent e881acd1
......@@ -82,7 +82,7 @@ void TestStorage::storage()
if (dirTest.exists()) {
#ifdef Q_OS_UNIX
QByteArray ba = QByteArray("rm -rf ") + QFile::encodeName(testFile);
system(ba.constData()); // QDir::rmdir isn't recursive!
Q_UNUSED(system(ba.constData())); // QDir::rmdir isn't recursive!
#else
QFAIL("build dir not empty");
#endif
......@@ -215,7 +215,7 @@ void TestStorage::storage2()
if (dirTest.exists()) {
#ifdef Q_OS_UNIX
QByteArray ba = QByteArray("rm -rf ") + QFile::encodeName(testFile);
system(ba.constData()); // QDir::rmdir isn't recursive!
Q_UNUSED(system(ba.constData())); // QDir::rmdir isn't recursive!
#else
QFAIL("build dir not empty");
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment