forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user