aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/variant
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2019-05-07 00:00:29 +0300
committerOrgad Shaneh <orgads@gmail.com>2019-05-15 06:44:17 +0000
commita25699c0da22b20f460b4db1f2f7ba35dd698f7d (patch)
tree1680301967dfa847d8008d109ece8be8e012c436 /src/libs/3rdparty/variant
parent348a7dadac097f7c1a5b8c4bb362295e811e1821 (diff)
Variant: Suppress GCC9 warning
Can be removed once we bump to C++17 and use std::variant. Change-Id: Icc0da587fa85e53c314b1dd5d971b192b884b9fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/3rdparty/variant')
-rw-r--r--src/libs/3rdparty/variant/variant.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/3rdparty/variant/variant.hpp b/src/libs/3rdparty/variant/variant.hpp
index 29d7feb29f..dca26986c9 100644
--- a/src/libs/3rdparty/variant/variant.hpp
+++ b/src/libs/3rdparty/variant/variant.hpp
@@ -8,6 +8,11 @@
#ifndef MPARK_VARIANT_HPP
#define MPARK_VARIANT_HPP
+#if defined(__GNUC__) && __GNUC__ >= 9
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-copy"
+#endif
+
/*
variant synopsis
@@ -2453,4 +2458,8 @@ namespace std {
} // namespace std
+#if defined(__GNUC__) && __GNUC__ >= 9
+#pragma GCC diagnostic pop
+#endif
+
#endif // MPARK_VARIANT_HPP