diff options
Diffstat (limited to 'qtools')
-rw-r--r-- | qtools/qglobal.h | 3 | ||||
-rw-r--r-- | qtools/qtextcodec.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/qtools/qglobal.h b/qtools/qglobal.h index 2ec484c..53b082e 100644 --- a/qtools/qglobal.h +++ b/qtools/qglobal.h @@ -593,4 +593,7 @@ Q_EXPORT void qObsolete( const char *obj, const char *oldfunc ); Q_EXPORT void qObsolete( const char *message ); #endif +// DvH: added to avoid warnings on recent gcc versions +#define Q_DELETE_VOID_UNDEFINED + #endif // QGLOBAL_H diff --git a/qtools/qtextcodec.cpp b/qtools/qtextcodec.cpp index cdecfce..fbbc1f9 100644 --- a/qtools/qtextcodec.cpp +++ b/qtools/qtextcodec.cpp @@ -925,6 +925,7 @@ struct QMultiByteUnicodeTable { QMultiByteUnicodeTable* multibyte; }; +#ifndef QT_NO_CODECS static int getByte(char* &cursor) { int byte = 0; @@ -939,7 +940,6 @@ static int getByte(char* &cursor) return byte&0xff; } -#ifndef QT_NO_CODECS class QTextCodecFromIOD; class QTextCodecFromIODDecoder : public QTextDecoder { |