Browse Source

[3932] Ignored remove return status

Francis Dupont 9 years ago
parent
commit
03f1f6175c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/util/tests/socketsession_unittest.cc

+ 2 - 2
src/lib/util/tests/socketsession_unittest.cc

@@ -176,7 +176,7 @@ protected:
     {
         std::string unix_file = getSocketPath();
 
-        remove(unix_file.c_str());
+        static_cast<void>(remove(unix_file.c_str()));
         test_un_.sun_family = AF_UNIX;
         strncpy(test_un_.sun_path, unix_file.c_str(), sizeof(test_un_.sun_path));
 #ifdef HAVE_SA_LEN
@@ -188,7 +188,7 @@ protected:
         if (listen_fd_ != -1) {
             close(listen_fd_);
         }
-        remove(getSocketPath().c_str());
+        static_cast<void>(remove(getSocketPath().c_str()));
     }
 
     // Start an internal "socket session server".