diff --git a/src/App/Document.cpp b/src/App/Document.cpp index be0f89241f..3e7ae022aa 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -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 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::type& edgeAttrMap = boost::get(boost::edge_attribute, DepList);