diff options
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljslogger.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp index d7bdc714a6..01bf600fd9 100644 --- a/src/qmlcompiler/qqmljslogger.cpp +++ b/src/qmlcompiler/qqmljslogger.cpp @@ -26,6 +26,17 @@ ** ****************************************************************************/ +#include <qglobal.h> + +// GCC 11 thinks diagMsg.fixSuggestion.fixes.d.ptr is somehow uninitialized in +// QList::emplaceBack(), probably called from QQmlJsLogger::log() +// Ditto for GCC 12, but it emits a different warning +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wuninitialized") +QT_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") +#include <qlist.h> +QT_WARNING_POP + #include "qqmljslogger_p.h" QT_BEGIN_NAMESPACE |