Browse Source

[3932] Ignored remove return status

Francis Dupont 9 years ago
parent
commit
9a2c1ef888
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/config/tests/command_socket_factory_unittests.cc

+ 2 - 2
src/lib/config/tests/command_socket_factory_unittests.cc

@@ -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)