diff options
author | David Faure <faure@kde.org> | 2012-02-17 09:05:39 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-17 16:42:28 +0100 |
commit | 7e970eb58c71dc08981575c648a04d258dbf0684 (patch) | |
tree | db556d2d066b61297025aafe1426d667a917ae62 /tests/auto/other/headersclean/tst_headersclean.cpp | |
parent | 77172b25fe18c8c9e1578e2c0caeb63cb674513a (diff) |
Ensure that Qt public headers compile with strict flags
Those from
http://wiki.qt-project.org/Coding_Conventions#Conventions_for_public_header_files
(unfortunatey -Wold-style-cast cannot be used due to the glibc macro bswap_16)
and many Qt defines that disable casts.
Change-Id: I97ac707a101df9819e8c031fa75a31b30e20247f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/other/headersclean/tst_headersclean.cpp')
-rw-r--r-- | tests/auto/other/headersclean/tst_headersclean.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/other/headersclean/tst_headersclean.cpp b/tests/auto/other/headersclean/tst_headersclean.cpp index 41992b8d2a..81d0aa3a4a 100644 --- a/tests/auto/other/headersclean/tst_headersclean.cpp +++ b/tests/auto/other/headersclean/tst_headersclean.cpp @@ -39,7 +39,6 @@ ** ****************************************************************************/ -#define QT_NO_KEYWORDS #define signals int #define slots int #define emit public:; @@ -47,12 +46,16 @@ #define forever public:; #include <QtCore/QtCore> +#include <QtConcurrent/QtConcurrent> #include <QtTest/QtTest> #include <QtNetwork/QtNetwork> #include <QtXml/QtXml> #include <QtSql/QtSql> #include <QtGui/QtGui> +#include <QtWidgets/QtWidgets> +#include <QtPrintSupport/QtPrintSupport> +#include <QtPlatformSupport/QtPlatformSupport> #ifndef QT_NO_OPENGL #include <QtOpenGL/QtOpenGL> |