diff --git a/lib/utils/mu-sexp.hh b/lib/utils/mu-sexp.hh index d25cc647..77c8a8e2 100644 --- a/lib/utils/mu-sexp.hh +++ b/lib/utils/mu-sexp.hh @@ -109,10 +109,13 @@ struct Sexp { template Sexp(S&& s, T&& t, Args&&... args): value{List()} { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" auto& l{std::get(value)}; l.emplace_back(Sexp(std::forward(s))); l.emplace_back(Sexp(std::forward(t))); (l.emplace_back(Sexp(std::forward(args))), ...); +#pragma GCC diagnostic pop } /** @@ -205,9 +208,12 @@ struct Sexp { template Sexp& add(V1&& v1, V2&& v2, Args... args) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" return add(std::forward(v1)) .add(std::forward(v2)) .add(std::forward(args)...); +#pragma GCC diagnostic pop } /// Adding list elements