Utils: Suppress warning in SmallString

Task-nubmer: QTCREATORBUG-20541
Change-Id: I7deb64f0f7c63c07641833408596ead0f4e087b8
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2019-01-09 18:32:00 +01:00
parent a3c6d30b75
commit f8aad27a88

View File

@@ -53,6 +53,11 @@
#define unittest_public private
#endif
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
namespace Utils {
template<uint Size>
@@ -976,3 +981,7 @@ SmallString operator+(const char(&first)[Size], SmallStringView second)
}
} // namespace Utils
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif