Browse Source

[3932] Ignored remove return status

Francis Dupont 10 years ago
parent
commit
4577e7407d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/log/tests/logger_manager_unittest.cc

+ 2 - 2
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
     // 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
     // if it does not already exist.  So delete the temporary file before
     // logging the first message.
     // logging the first message.
-    remove(file_spec.getFileName().c_str());
+    static_cast<void>(remove(file_spec.getFileName().c_str()));
 
 
     // Set up the file appenders.
     // Set up the file appenders.
     LoggerManager manager;
     LoggerManager manager;
@@ -368,7 +368,7 @@ TEST_F(LoggerManagerTest, checkLayoutPattern) {
     // For the first test, we want to check that the file is created
     // 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
     // if it does not already exist.  So delete the temporary file before
     // logging the first message.
     // logging the first message.
-    remove(file_spec.getFileName().c_str());
+    static_cast<void>(remove(file_spec.getFileName().c_str()));
 
 
     // Set up the file appenders.
     // Set up the file appenders.
     LoggerManager manager;
     LoggerManager manager;