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

index 5e47800361d2a610f9f83de9d743a0636f1c4b5f..1fd81d06aa21b9061b145e17f9936c7ce0a5d8d7 100644 (file)
@@ -33,14 +33,14 @@ public:
         :SOCKET_NAME(getSocketPath()) {
 
         // Remove any stale socket files
-        remove(SOCKET_NAME.c_str());
+        static_cast<void>(remove(SOCKET_NAME.c_str()));
     }
 
     /// Default destructor
     ~CommandSocketFactoryTest() {
 
         // Remove any stale socket files
-        remove(SOCKET_NAME.c_str());
+        static_cast<void>(remove(SOCKET_NAME.c_str()));
     }
 
     /// @brief Returns socket path (using either hardcoded path or env variable)