From 1daf85a722dba7aa06f307ea34abb97e0bf8a0a6 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Fri, 9 Oct 2015 14:19:53 +0200 Subject: [PATCH 1/2] Quieten warning by the code model QDebug is considered a forward declared type only. Change-Id: Icd3d544dee04d81bb7087fe6f0153949afad3f10 Reviewed-by: Christian Stenger --- plugins/autotest/testxmloutputreader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/autotest/testxmloutputreader.cpp b/plugins/autotest/testxmloutputreader.cpp index 8bff8557722..63fa9f92873 100644 --- a/plugins/autotest/testxmloutputreader.cpp +++ b/plugins/autotest/testxmloutputreader.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include #include From 0749d66362ff96b0792fefb9b7c79409cb6d02b5 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 14 Oct 2015 15:12:42 +0200 Subject: [PATCH 2/2] Fix warning about comparing an enum to an integer Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2 Reviewed-by: Christian Stenger --- plugins/autotest/testtreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp index 8e36d95577a..4dc78f3aa15 100644 --- a/plugins/autotest/testtreeitem.cpp +++ b/plugins/autotest/testtreeitem.cpp @@ -73,7 +73,7 @@ static QIcon testTreeIcon(TestTreeItem::Type type) QIcon(QLatin1String(":/images/func.png")), QIcon(QLatin1String(":/images/data.png")) }; - if (type >= sizeof(icons)) + if (static_cast(type) >= sizeof(icons)) return icons[2]; return icons[type]; }