App: [skip ci] suppress false warning

This commit is contained in:
wmayer
2020-06-06 10:54:16 +02:00
parent 457dba4fee
commit 5b5ea24b63

View File

@@ -804,6 +804,12 @@ void Document::exportGraphviz(std::ostream& out) const
}
}
#if defined(__clang__)
#elif defined (__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
void markCycles() {
bool changed = true;
std::unordered_set<Vertex> in_use;
@@ -869,6 +875,11 @@ void Document::exportGraphviz(std::ostream& out) const
edgeAttrMap[ei->second]["color"] = "red";
}
#if defined(__clang__)
#elif defined (__GNUC__)
# pragma GCC diagnostic pop
#endif
void markOutOfScopeLinks() {
const boost::property_map<Graph, boost::edge_attribute_t>::type& edgeAttrMap = boost::get(boost::edge_attribute, DepList);