]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3932] Ignored remove return status
authorFrancis Dupont <fdupont@isc.org>
Wed, 8 Jul 2015 13:37:40 +0000 (15:37 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 8 Jul 2015 13:37:40 +0000 (15:37 +0200)
src/lib/log/tests/logger_manager_unittest.cc

index 99a065c21e1f7c322648bfd383a62d7d65fd96d5..78e04ea782f66117f71dc94f7ce1396d1c384adc 100644 (file)
@@ -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<void>(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<void>(remove(file_spec.getFileName().c_str()));
 
     // Set up the file appenders.
     LoggerManager manager;