Parcourir la source

[3932] Ignored remove return status

Francis Dupont il y a 9 ans
Parent
commit
fc5f35e906
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/bin/dhcp4/tests/config_parser_unittest.cc

+ 2 - 2
src/bin/dhcp4/tests/config_parser_unittest.cc

@@ -123,8 +123,8 @@ public:
         resetConfiguration();
 
         // ... and delete the hooks library marker files if present
-        remove(LOAD_MARKER_FILE);
-        remove(UNLOAD_MARKER_FILE);
+        static_cast<void>(remove(LOAD_MARKER_FILE));
+        static_cast<void>(remove(UNLOAD_MARKER_FILE));
     };
 
     /// @brief Returns an interface configuration used by the most of the