From: Francis Dupont Date: Wed, 8 Jul 2015 13:37:40 +0000 (+0200) Subject: [3932] Ignored remove return status X-Git-Tag: trac4006_base~23^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4577e7407d5d3511af49f33846f7acce2ea99bcd;p=thirdparty%2Fkea.git [3932] Ignored remove return status --- diff --git a/src/lib/log/tests/logger_manager_unittest.cc b/src/lib/log/tests/logger_manager_unittest.cc index 99a065c21e..78e04ea782 100644 --- a/src/lib/log/tests/logger_manager_unittest.cc +++ b/src/lib/log/tests/logger_manager_unittest.cc @@ -195,7 +195,7 @@ TEST_F(LoggerManagerTest, FileLogger) { // For the first test, we want to check that the file is created // if it does not already exist. So delete the temporary file before // logging the first message. - remove(file_spec.getFileName().c_str()); + static_cast(remove(file_spec.getFileName().c_str())); // Set up the file appenders. LoggerManager manager; @@ -368,7 +368,7 @@ TEST_F(LoggerManagerTest, checkLayoutPattern) { // For the first test, we want to check that the file is created // if it does not already exist. So delete the temporary file before // logging the first message. - remove(file_spec.getFileName().c_str()); + static_cast(remove(file_spec.getFileName().c_str())); // Set up the file appenders. LoggerManager manager;