diff --git a/src/graphviz_digraph_parser.cpp b/src/graphviz_digraph_parser.cpp index 88a443ea..2690614a 100644 --- a/src/graphviz_digraph_parser.cpp +++ b/src/graphviz_digraph_parser.cpp @@ -95,12 +95,13 @@ using std::malloc; typedef std::map::iterator It; typedef std::map::iterator Iter; +#if 0 // RG - defined but unused warning static const std::string& get_graph_name(const Subgraph& g) { const boost::graph_property::type& name = boost::get_property(g, boost::graph_name); return name; } - +#endif static std::pair lookup(const std::string& name) { //lookup in the top level Iter it = nodes.find(name); @@ -1412,12 +1413,10 @@ namespace boost { void read_graphviz(const std::string& filename, GRAPHVIZ_GRAPH& g) { FILE* file = fopen(filename.c_str(), "r"); yyrestart(file); - void* in = static_cast(file); yyparse(static_cast(&g)); } void read_graphviz(FILE* file, GRAPHVIZ_GRAPH& g) { - void* in = static_cast(file); yyrestart(file); yyparse(static_cast(&g)); } diff --git a/src/graphviz_graph_parser.cpp b/src/graphviz_graph_parser.cpp index 92dd8807..0f69e302 100644 --- a/src/graphviz_graph_parser.cpp +++ b/src/graphviz_graph_parser.cpp @@ -95,12 +95,13 @@ using std::malloc; typedef std::map::iterator It; typedef std::map::iterator Iter; +#if 0 // RG - defined but unused warning static const std::string& get_graph_name(const Subgraph& g) { const boost::graph_property::type& name = boost::get_property(g, boost::graph_name); return name; } - +#endif static std::pair lookup(const std::string& name) { //lookup in the top level Iter it = nodes.find(name);