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

index 58a490b430ff6d9fe95b6d23c15008d1dc57686c..6f4a9d172a129999568ff90f56dff65400451e49 100644 (file)
@@ -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".