Review Request: Remove some warnings when compiled with: ADD_DEFINITIONS( -Wall -Wextra -Weffc++ -Wstrict-null-sentinel -Wabi -Wreorder -Woverloaded-virtual)

Jaime Torres jtamate at gmail.com
Sun Aug 16 11:14:14 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1327/
-----------------------------------------------------------

(Updated 2009-08-16 10:14:13.840603)


Review request for kdelibs.


Changes
-------

using false in the boolean initialization. And show the warnings removed.


Summary (updated)
-------

Remove some warnings when compiled with: ADD_DEFINITIONS( -Wall -Wextra -Weffc++ -Wstrict-null-sentinel -Wabi -Wreorder -Woverloaded-virtual)

Before (removed some noise):
kdelibs/kdecore/compression/kfilterdev.h: At global scope:
kdelibs/kdecore/compression/kfilterdev.h:37: warning: ‘class KFilterDev’ has pointer data members
kdelibs/kdecore/compression/kfilterdev.h:37: warning:   but does not override ‘KFilterDev(const KFilterDev&)’
kdelibs/kdecore/compression/kfilterdev.h:37: warning:   or ‘operator=(const KFilterDev&)’
kdelibs/kdecore/compression/kfilterdev.cpp: At global scope:
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning: ‘class KFilterDev::Private’ has pointer data members
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning:   but does not override ‘KFilterDev::Private(const KFilterDev::Private&)’
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning:   or ‘operator=(const KFilterDev::Private&)’
kdelibs/kdecore/compression/kfilterdev.cpp: In constructor ‘KFilterDev::Private::Private()’:
kdelibs/kdecore/compression/kfilterdev.cpp:32: warning: ‘KFilterDev::Private::buffer’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kfilterdev.cpp:32: warning: ‘KFilterDev::Private::origFileName’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kfilterdev.cpp:32: warning: ‘KFilterDev::Private::result’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kfilterdev.cpp:32: warning: ‘KFilterDev::Private::filter’ should be initialized in the member initialization list

kdelibs/kdecore/compression/kgzipfilter.h:33: warning: ‘class KGzipFilter’ has pointer data members
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   but does not override ‘KGzipFilter(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   or ‘operator=(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.cpp: In constructor ‘KGzipFilter::Private::Private()’:
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::zStream’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::headerWritten’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::footerWritten’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::compressed’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::mode’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::crc’ should be initialized in the member initialization list

After (removed the same noise):
kdelibs/kdecore/compression/kfilterdev.h: At global scope:
kdelibs/kdecore/compression/kfilterdev.h:37: warning: ‘class KFilterDev’ has pointer data members
kdelibs/kdecore/compression/kfilterdev.h:37: warning:   but does not override ‘KFilterDev(const KFilterDev&)’
kdelibs/kdecore/compression/kfilterdev.h:37: warning:   or ‘operator=(const KFilterDev&)’
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning: ‘class KFilterDev::Private’ has pointer data members
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning:   but does not override ‘KFilterDev::Private(const KFilterDev::Private&)’
kdelibs/kdecore/compression/kfilterdev.cpp:30: warning:   or ‘operator=(const KFilterDev::Private&)’

kdelibs/kdecore/compression/kgzipfilter.h:33: warning: ‘class KGzipFilter’ has pointer data members
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   but does not override ‘KGzipFilter(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   or ‘operator=(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.cpp: In constructor ‘KGzipFilter::Private::Private()’:
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::zStream’ should be initialized in the member initialization list
kdelibs/kdecore/compression/kgzipfilter.h:33: warning: ‘class KGzipFilter’ has pointer data members
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   but does not override ‘KGzipFilter(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.h:33: warning:   or ‘operator=(const KGzipFilter&)’
kdelibs/kdecore/compression/kgzipfilter.cpp: In constructor ‘KGzipFilter::Private::Private()’:
kdelibs/kdecore/compression/kgzipfilter.cpp:41: warning: ‘KGzipFilter::Private::zStream’ should be initialized in the member initialization list


Diffs (updated)
-----

  /trunk/KDE/kdelibs/kdecore/compression/kfilterdev.cpp 1011431 
  /trunk/KDE/kdelibs/kdecore/compression/kgzipfilter.cpp 1011431 

Diff: http://reviewboard.kde.org/r/1327/diff


Testing
-------

Compiles with less warnings and konqueror works with gzipped http content.


Thanks,

Jaime





More information about the kde-core-devel mailing list