Hello community, here is the log from the commit of package libqt4 checked in at Fri Feb 23 12:52:12 CET 2007. -------- --- libqt4/libqt4.changes 2007-02-13 20:44:40.000000000 +0100 +++ /mounts/work_src_done/STABLE/libqt4/libqt4.changes 2007-02-21 00:52:47.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Feb 21 00:52:34 CET 2007 - dmueller@suse.de + +- fix excessive compiler warnings in headers + +------------------------------------------------------------------- libqt4-devel-doc-data.changes: same change libqt4-sql-plugins.changes: same change New: ---- gcc-43-warnings.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libqt4-devel-doc-data.spec ++++++ --- /var/tmp/diff_new_pack.v31100/_old 2007-02-23 12:49:49.000000000 +0100 +++ /var/tmp/diff_new_pack.v31100/_new 2007-02-23 12:49:49.000000000 +0100 @@ -25,7 +25,7 @@ # COMMON-BEGIN # COMMON-BEGIN Version: 4.2.2 -Release: 19 +Release: 20 %define x11_free -x11-opensource-src- %define rversion 4.2.2 Source: qt%x11_free%rversion.tar.bz2 @@ -45,6 +45,7 @@ Patch16: 0154-qdbuscpp2xml-moc_path.diff Patch17: 0155-indic-script-fix.diff Patch18: fix-string-literal-comparison.diff +Patch19: gcc-43-warnings.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -xshape -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/libqt4 -examplesdir %_docdir/libqt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ @@ -75,6 +76,7 @@ %patch16 %patch17 %patch18 +%patch19 -p1 # be sure not to use them rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib} # COMMON-END @@ -111,7 +113,9 @@ /usr/share/doc/packages/libqt4/html /usr/share/doc/packages/libqt4/examples -%changelog -n libqt4-devel-doc-data +%changelog +* Wed Feb 21 2007 - dmueller@suse.de +- fix excessive compiler warnings in headers * Tue Feb 13 2007 - dmueller@suse.de - fix reading of x ressources (#244935) * Mon Feb 12 2007 - dmueller@suse.de ++++++ libqt4.spec ++++++ --- /var/tmp/diff_new_pack.v31100/_old 2007-02-23 12:49:49.000000000 +0100 +++ /var/tmp/diff_new_pack.v31100/_new 2007-02-23 12:49:49.000000000 +0100 @@ -27,7 +27,7 @@ Provides: qt # COMMON-BEGIN Version: 4.2.2 -Release: 19 +Release: 20 %define x11_free -x11-opensource-src- %define rversion 4.2.2 Source: qt%x11_free%rversion.tar.bz2 @@ -47,6 +47,7 @@ Patch16: 0154-qdbuscpp2xml-moc_path.diff Patch17: 0155-indic-script-fix.diff Patch18: fix-string-literal-comparison.diff +Patch19: gcc-43-warnings.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -xshape -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/libqt4 -examplesdir %_docdir/libqt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ @@ -78,6 +79,7 @@ %patch16 %patch17 %patch18 +%patch19 -p1 # be sure not to use them rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib} # COMMON-END @@ -372,7 +374,9 @@ %dir %plugindir/sqldrivers %_libdir/libQtSql*.so.* -%changelog -n libqt4 +%changelog +* Wed Feb 21 2007 - dmueller@suse.de +- fix excessive compiler warnings in headers * Tue Feb 13 2007 - dmueller@suse.de - fix reading of x ressources (#244935) * Mon Feb 12 2007 - dmueller@suse.de ++++++ libqt4-sql-plugins.spec ++++++ --- /var/tmp/diff_new_pack.v31100/_old 2007-02-23 12:49:49.000000000 +0100 +++ /var/tmp/diff_new_pack.v31100/_new 2007-02-23 12:49:49.000000000 +0100 @@ -24,7 +24,7 @@ # COMMON-BEGIN # COMMON-BEGIN Version: 4.2.2 -Release: 4 +Release: 5 %define x11_free -x11-opensource-src- %define rversion 4.2.2 Source: qt%x11_free%rversion.tar.bz2 @@ -44,6 +44,7 @@ Patch16: 0154-qdbuscpp2xml-moc_path.diff Patch17: 0155-indic-script-fix.diff Patch18: fix-string-literal-comparison.diff +Patch19: gcc-43-warnings.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -xshape -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/libqt4 -examplesdir %_docdir/libqt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ @@ -73,6 +74,7 @@ %patch16 %patch17 %patch18 +%patch19 -p1 # be sure not to use them rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib} # COMMON-END @@ -210,7 +212,9 @@ %plugindir/sqldrivers/libqsqlmysql*.so -%changelog -n libqt4-sql-plugins +%changelog +* Wed Feb 21 2007 - dmueller@suse.de +- fix excessive compiler warnings in headers * Tue Feb 13 2007 - dmueller@suse.de - fix reading of x ressources (#244935) * Mon Feb 12 2007 - dmueller@suse.de ++++++ gcc-43-warnings.diff ++++++
From b921b676c928755d258fd41759bcca515e3f0e9b Mon Sep 17 00:00:00 2001 From: Dirk Mueller
Date: Tue, 20 Feb 2007 11:58:28 +0100 Subject: [PATCH] fix various gcc 4.3 compiler warnings
This patch fixes various low-impact compiler warnings
triggered by the Qt headers.
================================================================================
--- qt-x11-opensource-src-4.2.2/src/corelib/tools/qbytearray.h
+++ qt-x11-opensource-src-4.2.2/src/corelib/tools/qbytearray.h
@@ -128,10 +128,10 @@
bool isDetached() const;
void clear();
- const char at(int i) const;
- const char operator[](int i) const;
+ char at(int i) const;
+ char operator[](int i) const;
QByteRef operator[](int i);
- const char operator[](uint i) const;
+ char operator[](uint i) const;
QByteRef operator[](uint i);
int indexOf(char c, int from = 0) const;
@@ -325,11 +325,11 @@
inline QByteArray::~QByteArray() { if (!d->ref.deref()) qFree(d); }
inline int QByteArray::size() const
{ return d->size; }
-inline const char QByteArray::at(int i) const
+inline char QByteArray::at(int i) const
{ Q_ASSERT(i >= 0 && i < size()); return d->data[i]; }
-inline const char QByteArray::operator[](int i) const
+inline char QByteArray::operator[](int i) const
{ Q_ASSERT(i >= 0 && i < size()); return d->data[i]; }
-inline const char QByteArray::operator[](uint i) const
+inline char QByteArray::operator[](uint i) const
{ Q_ASSERT(i < uint(size())); return d->data[i]; }
inline bool QByteArray::isEmpty() const
{ return d->size == 0; }
@@ -370,7 +370,7 @@
: a(array),i(idx) {}
friend class QByteArray;
public:
- inline operator const char() const
+ inline operator char() const
{ return i < a.d->size ? a.d->data[i] : 0; }
inline QByteRef &operator=(char c)
{ if (a.d->ref != 1 || i >= a.d->size) a.expand(i);
--- qt-x11-opensource-src-4.2.2/src/corelib/tools/qchar.cpp
+++ qt-x11-opensource-src-4.2.2/src/corelib/tools/qchar.cpp
@@ -756,7 +756,7 @@
\sa toLatin1(), unicode(), QTextCodec::codecForCStrings()
*/
-const char QChar::toAscii() const
+char QChar::toAscii() const
{
#ifndef QT_NO_CODEC_FOR_C_STRINGS
if (QTextCodec::codecForCStrings())
--- qt-x11-opensource-src-4.2.2/src/corelib/tools/qchar.h
+++ qt-x11-opensource-src-4.2.2/src/corelib/tools/qchar.h
@@ -36,8 +36,8 @@
{
public:
inline explicit QLatin1Char(char c) : ch(c) {}
- inline const char toLatin1() const { return ch; }
- inline const ushort unicode() const { return ushort(uchar(ch)); }
+ inline char toLatin1() const { return ch; }
+ inline ushort unicode() const { return ushort(uchar(ch)); }
private:
char ch;
@@ -217,9 +217,9 @@
UnicodeVersion unicodeVersion() const;
- const char toAscii() const;
- inline const char toLatin1() const;
- inline const ushort unicode() const { return ucs; }
+ char toAscii() const;
+ inline char toLatin1() const;
+ inline ushort unicode() const { return ucs; }
#ifdef Q_NO_PACKED_REFERENCE
inline ushort &unicode() { return const_cast