From 5b5ea24b631a611f68dc4802957bcaf9c445774e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 6 Jun 2020 10:54:16 +0200 Subject: [PATCH] App: [skip ci] suppress false warning --- src/App/Document.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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);