Hello community,
here is the log from the commit of package libqt4
checked in at Tue Dec 11 00:20:03 CET 2007.
--------
--- libqt4/libqt4.changes 2007-12-06 12:03:46.000000000 +0100
+++ /mounts/work_src_done/STABLE/libqt4/libqt4.changes 2007-12-09 01:58:11.000000000 +0100
@@ -1,0 +2,6 @@
+Sat Dec 8 11:56:56 CET 2007 - dmueller@suse.de
+
+- fix strict aliasing violations in tool classes
+- silence frequent warnings in headers
+
+-------------------------------------------------------------------
libqt4-devel-doc-data.changes: same change
libqt4-sql-plugins.changes: same change
New:
----
gcc-43-warnings.diff
qt-43-aliasing.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libqt4-devel-doc-data.spec ++++++
--- /var/tmp/diff_new_pack.v28791/_old 2007-12-11 00:05:08.000000000 +0100
+++ /var/tmp/diff_new_pack.v28791/_new 2007-12-11 00:05:08.000000000 +0100
@@ -26,7 +26,7 @@
# COMMON-BEGIN
# COMMON-BEGIN
Version: 4.3.3
-Release: 2
+Release: 4
%define base_name libqt4
%define x11_free -x11-opensource-src-
%define rversion 4.3.3
@@ -59,6 +59,8 @@
Patch46: 0172-prefer-xrandr-over-xinerama.diff
Patch47: 0200-fix-qsslsocket-waitfor.diff
Patch48: 0203-qtexthtmlparser-link-color.diff
+Patch49: qt-43-aliasing.diff
+Patch50: gcc-43-warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 910
%define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -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/%{base_name} -examplesdir %_docdir/%{base_name}/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch -reduce-relocations -no-exceptions -system-libtiff -glib
@@ -105,6 +107,8 @@
%patch46
%patch47
%patch48
+%patch49
+%patch50
# be sure not to use them
rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib,libtiff}
# COMMON-END
@@ -143,6 +147,9 @@
/usr/share/doc/packages/libqt4/examples
%changelog
+* Sat Dec 08 2007 - dmueller@suse.de
+- fix strict aliasing violations in tool classes
+- silence frequent warnings in headers
* Thu Dec 06 2007 - dmueller@suse.de
- add quoting to environment variable
* Wed Dec 05 2007 - dmueller@suse.de
++++++ libqt4.spec ++++++
--- /var/tmp/diff_new_pack.v28791/_old 2007-12-11 00:05:08.000000000 +0100
+++ /var/tmp/diff_new_pack.v28791/_new 2007-12-11 00:05:08.000000000 +0100
@@ -36,7 +36,7 @@
Provides: qt
# COMMON-BEGIN
Version: 4.3.3
-Release: 2
+Release: 4
%define base_name libqt4
%define x11_free -x11-opensource-src-
%define rversion 4.3.3
@@ -69,6 +69,8 @@
Patch46: 0172-prefer-xrandr-over-xinerama.diff
Patch47: 0200-fix-qsslsocket-waitfor.diff
Patch48: 0203-qtexthtmlparser-link-color.diff
+Patch49: qt-43-aliasing.diff
+Patch50: gcc-43-warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 910
%define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -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/%{base_name} -examplesdir %_docdir/%{base_name}/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch -reduce-relocations -no-exceptions -system-libtiff -glib
@@ -116,6 +118,8 @@
%patch46
%patch47
%patch48
+%patch49
+%patch50
# be sure not to use them
rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib,libtiff}
# COMMON-END
@@ -449,6 +453,9 @@
%_libdir/libQtSql*.so.*
%changelog
+* Sat Dec 08 2007 - dmueller@suse.de
+- fix strict aliasing violations in tool classes
+- silence frequent warnings in headers
* Thu Dec 06 2007 - dmueller@suse.de
- add quoting to environment variable
* Wed Dec 05 2007 - dmueller@suse.de
++++++ libqt4-sql-plugins.spec ++++++
--- /var/tmp/diff_new_pack.v28791/_old 2007-12-11 00:05:08.000000000 +0100
+++ /var/tmp/diff_new_pack.v28791/_new 2007-12-11 00:05:08.000000000 +0100
@@ -26,7 +26,7 @@
# COMMON-BEGIN
# COMMON-BEGIN
Version: 4.3.3
-Release: 2
+Release: 3
%define base_name libqt4
%define x11_free -x11-opensource-src-
%define rversion 4.3.3
@@ -59,6 +59,8 @@
Patch46: 0172-prefer-xrandr-over-xinerama.diff
Patch47: 0200-fix-qsslsocket-waitfor.diff
Patch48: 0203-qtexthtmlparser-link-color.diff
+Patch49: qt-43-aliasing.diff
+Patch50: gcc-43-warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 910
%define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -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/%{base_name} -examplesdir %_docdir/%{base_name}/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch -reduce-relocations -no-exceptions -system-libtiff -glib
@@ -104,6 +106,8 @@
%patch46
%patch47
%patch48
+%patch49
+%patch50
# be sure not to use them
rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib,libtiff}
# COMMON-END
@@ -247,6 +251,9 @@
%plugindir/sqldrivers/libqsqlmysql*.so
%changelog
+* Sat Dec 08 2007 - dmueller@suse.de
+- fix strict aliasing violations in tool classes
+- silence frequent warnings in headers
* Thu Dec 06 2007 - dmueller@suse.de
- add quoting to environment variable
* Wed Dec 05 2007 - dmueller@suse.de
++++++ gcc-43-warnings.diff ++++++
--- src/corelib/tools/qbytearray.h
+++ src/corelib/tools/qbytearray.h
@@ -141,10 +141,10 @@ public:
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;
@@ -343,11 +343,11 @@ inline QByteArray::QByteArray(): d(&shar
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; }
@@ -388,7 +388,7 @@ class Q_CORE_EXPORT QByteRef {
: 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);
--- src/corelib/tools/qstring.h
+++ src/corelib/tools/qstring.h
@@ -784,9 +784,9 @@ public:
inline void setCell(uchar cell);
inline void setRow(uchar row);
- const char toAscii() const { return QChar(*this).toAscii(); }
- const char toLatin1() const { return QChar(*this).toLatin1(); }
- const ushort unicode() const { return QChar(*this).unicode(); }
+ char toAscii() const { return QChar(*this).toAscii(); }
+ char toLatin1() const { return QChar(*this).toLatin1(); }
+ ushort unicode() const { return QChar(*this).unicode(); }
#ifdef QT3_SUPPORT
inline QT3_SUPPORT bool mirrored() const { return hasMirrored(); }
--- src/corelib/tools/qchar.cpp
+++ src/corelib/tools/qchar.cpp
@@ -1237,7 +1237,7 @@ ushort QChar::toCaseFolded(ushort ucs2)
\sa toLatin1(), unicode(), QTextCodec::codecForCStrings()
*/
-const char QChar::toAscii() const
+char QChar::toAscii() const
{
#ifndef QT_NO_CODEC_FOR_C_STRINGS
if (QTextCodec::codecForCStrings())
--- src/corelib/tools/qchar.h
+++ src/corelib/tools/qchar.h
@@ -49,8 +49,8 @@ struct QLatin1Char
{
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;
@@ -229,9 +229,9 @@ public:
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