-Wunused-but-set-variable warnings
Matthias Fuchs
mat69 at gmx.net
Mon Jul 4 22:05:19 BST 2011
Am Montag 04 Juli 2011, 20:07:20 schrieb Albert Astals Cid:
> A Monday, July 04, 2011, Dawit A va escriure:
> > The following files all contain set but unused variables:
> >
> > snip
> >
> > Unlike the -Wunused-parameter fixing this warning messages requires
> > context because the variable may be set and unused due to a mistake
> > that can potentially be causing a bug. As such can kdelibs cmake file
> > be changed to error out, -Werror=unused-but-set-variable, for such
> > warnings ?
>
> You really want to make kdelibs uncompilable?
>
> Albert
Indeed. IIRC in some cases the public API has unused members. Removing them
could lead to ABI problems.
More information about the kde-core-devel
mailing list