From: Francis Dupont Date: Wed, 8 Jul 2015 13:33:28 +0000 (+0200) Subject: [3932] Ignored remove return status X-Git-Tag: trac4006_base~23^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03f1f6175ccff469f96e351c0fc5df3a11a9c709;p=thirdparty%2Fkea.git [3932] Ignored remove return status --- diff --git a/src/lib/util/tests/socketsession_unittest.cc b/src/lib/util/tests/socketsession_unittest.cc index 58a490b430..6f4a9d172a 100644 --- a/src/lib/util/tests/socketsession_unittest.cc +++ b/src/lib/util/tests/socketsession_unittest.cc @@ -176,7 +176,7 @@ protected: { std::string unix_file = getSocketPath(); - remove(unix_file.c_str()); + static_cast(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(remove(getSocketPath().c_str())); } // Start an internal "socket session server".