tools: fix compilation warning about an unused return value
diff --git a/tools/rocketfuel-maps-cch-to-annotaded.cc b/tools/rocketfuel-maps-cch-to-annotaded.cc
index d9fa17e..193d6f5 100644
--- a/tools/rocketfuel-maps-cch-to-annotaded.cc
+++ b/tools/rocketfuel-maps-cch-to-annotaded.cc
@@ -135,7 +135,11 @@
topologyReader.SaveGraphviz (graph);
if (buildGraphvizGraph)
{
- system (("neato -Tpdf \"" + graph + "\" > \"" + graph_pdf + "\"").c_str ());
+ int ret = system (("neato -Tpdf \"" + graph + "\" > \"" + graph_pdf + "\"").c_str ());
+ if (ret != 0)
+ {
+ std::cerr << "WARN: failed to build a graph for the topology. Check if `neato' command is installed (part of graphviz package)" << std::endl;
+ }
}
topologyReader.SaveTopology (output);