[Coverity] Unchecked return value (CHECKED_RETURN)
This commit is contained in:
@@ -49,6 +49,8 @@
|
||||
#include "ns3/config.h"
|
||||
#include "ns3/ns2-mobility-helper.h"
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("ns2-mobility-helper-test-suite");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -227,7 +229,10 @@ private:
|
||||
void DoTeardown ()
|
||||
{
|
||||
Names::Clear ();
|
||||
std::remove (m_traceFile.c_str ());
|
||||
if (std::remove (m_traceFile.c_str ()))
|
||||
{
|
||||
NS_LOG_ERROR ("Failed to delete file " << m_traceFile);
|
||||
}
|
||||
Simulator::Destroy ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user