Package: libqt3-headers
Version: 3.3.4-3

Hello,
Here's a minor bug report(Warning clean) and an associated patch for 
libqt3-headers 3.3.4-3.

I use  libqt3-headers 3.3.4-3 as shown :
$dpkg -l | grep libqt
ii  libqt2         2.3.1-22       Qt GUI Library (runtime version).
ii  libqt3-dev     3.3.4-3        Qt development files
ii  libqt3-headers 3.3.4-3        Qt3 header files
ii  libqt3c102     3.3.4-3        Qt GUI Library, Version 3
ii  libqt3c102-mt  3.3.4-3        Qt GUI Library (Threaded runtime version), V
ii  libqtcups2     2.0-4          Qt interface library for CUPS
ii  libqthreads-12 1.6.7-1        QuickThreads library for Guile
ii  libqttestrunne 1.10.2-3       Unit Testing Library for C++

While compiling with a higher warning level, I came on the following warning :

usr/include/qt3/qmemarray.h: In member function `QMemArray<type>&
   QMemArray<type>::duplicate(const type*, unsigned int) [with type = char]':
/usr/include/qt3/qcstring.h:252:   instantiated from here
/usr/include/qt3/qmemarray.h:85: warning: cast from `const char*' to `char*'
   discards qualifiers from pointer target type

A simple patch to this is to remove the cast in qmemarray.h as this :

85c85
<       { return (QMemArray<type>&)QGArray::duplicate(a,n*sizeof(type)); }
---
>       { return 
(QMemArray<type>&)QGArray::duplicate((char*)a,n*sizeof(type)); }

Hope this helps.
Thanks for all your good work, have a nice day.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to