diff options
Diffstat (limited to 'src/core/Endian.cpp')
-rw-r--r-- | src/core/Endian.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/Endian.cpp b/src/core/Endian.cpp index 177c3a7fb..afe5ce5e9 100644 --- a/src/core/Endian.cpp +++ b/src/core/Endian.cpp @@ -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 |