-Wunused-but-set-variable warnings
David Faure
faure at kde.org
Fri Aug 26 16:25:44 BST 2011
On Monday 04 July 2011 12:02:47 Dawit A wrote:
> The following files all contain set but unused variables:
>
> kdelibs/kdecore/io/kar.cpp:109:19: warning: variable ‘uid’ set but not
> used [-Wunused-but-set-variable]
> kdelibs/kdecore/io/kar.cpp:109:24: warning: variable ‘gid’ set but not
> used [-Wunused-but-set-variable]
Small bug (unimplemented feature; an empty uid/gid string is then passed to
KArchiveFile below). Fixed.
> kdelibs/kdeui/widgets/ktabwidget.cpp:336:15: warning: variable
> ‘overlap’ set but not used [-Wunused-but-set-variable]
Removed.
> kdelibs/kded/kbuildsycoca.cpp:478:21: warning: variable
> ‘servicetypeFactory’ set but not used [-Wunused-but-set-variable]
> kdelibs/kded/kbuildsycoca.cpp:479:28: warning: variable
> ‘mimeTypeFactory’ set but not used [-Wunused-but-set-variable]
Removed.
> kdelibs/kio/kio/connection.cpp:169:39: warning: variable ‘type’ set
> but not used [-Wunused-but-set-variable]
Looks like a real bug / half-finished feature. Thiago?
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).
More information about the kde-core-devel
mailing list