aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index ade6e8c2..420b0984 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -103,6 +103,9 @@ namespace QMatrixClient
}
Omittable<T>& operator=(value_type&& val)
{
+ // For some reason GCC complains about -Wmaybe-uninitialized
+ // in the context of using Omittable<bool> with converters.h;
+ // though the logic looks very much benign (GCC bug???)
_value = std::move(val);
_omitted = false;
return *this;