Ignore compiler warnings in qendian.h.

This commit is contained in:
Felix Geyer 2011-12-26 19:34:34 +01:00
parent fb6ab63d6b
commit 4ebcd53801
2 changed files with 9 additions and 3 deletions

View File

@ -17,7 +17,14 @@
#include "Endian.h"
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3))
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
#include <QtCore/QtEndian>
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3))
#pragma GCC pop_options
#endif
#include <QtCore/QIODevice>
namespace Endian

View File

@ -40,11 +40,10 @@
****************************************************************************/
#include <QtGui/QtGui>
#include "modeltest.h"
#include <QtTest/QtTest>
#include <QtCore/QDebug>
#include <QtTest/QTest>
Q_DECLARE_METATYPE ( QModelIndex )