Review Request 114466: Remove noisy compiler warnings
lycantrophe li
lycantrophe at lambda.is
Sun Dec 15 23:17:47 UTC 2013
> On Dec. 15, 2013, 11:13 p.m., Milian Wolff wrote:
> > projectmanagers/cmake/cmakeutils.cpp, line 240
> > <http://git.reviewboard.kde.org/r/114466/diff/2/?file=225027#file225027line240>
> >
> > no don't do that, as the assert will be compiled to a no-op in release mode and then the .cd would not take affect - keep in mind that its mutating projectPath which is returned here.
I think this warrants a comment; I didn't notice this.
> On Dec. 15, 2013, 11:13 p.m., Milian Wolff wrote:
> > projectmanagers/custom-buildsystem/custombuildsystemconfigwidget.cpp, line 239
> > <http://git.reviewboard.kde.org/r/114466/diff/2/?file=225029#file225029line239>
> >
> > yeah, it could be removed thus cleaning up the code.
In the case of configurationsSelected I can agree, as the variable itself is about as long as the actual check, and as it is easy to see what's going on.
- lycantrophe
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/114466/#review45739
-----------------------------------------------------------
On Dec. 15, 2013, 8:24 p.m., lycantrophe li wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/114466/
> -----------------------------------------------------------
>
> (Updated Dec. 15, 2013, 8:24 p.m.)
>
>
> Review request for KDevelop.
>
>
> Bugs: Warnings
> http://bugs.kde.org/show_bug.cgi?id=Warnings
>
>
> Repository: kdevelop
>
>
> Description
> -------
>
> Some small fixes that removes some compiler warnings.
>
> Some warnings only appear when building for release when asserts gets defined or optimized outs, leaving variables passed to them unused. Commit 97f5869 explicitly flags some of these with Q_UNUSED silencing the warning and telling contributers that it is only there to make reading and asserting easier.
>
> Commit 5a4f06a silences some virtual-overload compiler warnings by explicitly saying that we want the parent's visit-methods available. This is augmented by adding the override identifier to the overriden methods, which is consistent with the transition to C++11.
>
>
> Diffs
> -----
>
> languages/cpp/cppduchain/cppducontext.h fdbe165
> languages/cpp/cppduchain/templatedeclaration.cpp 6b48b7a
> projectmanagers/cmake/cmakeutils.cpp 9aa22ca
> projectmanagers/cmake/tests/testhelpers.h 5cf552c
> projectmanagers/custom-buildsystem/custombuildsystemconfigwidget.cpp 042d523
>
> Diff: http://git.reviewboard.kde.org/r/114466/diff/
>
>
> Testing
> -------
>
> Ran unit tests. 97f5869 does not alter any code that does work. 5a4f06a only makes explicit what used to be implicit.
>
>
> Thanks,
>
> lycantrophe li
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20131215/eda034a2/attachment.html>
More information about the KDevelop-devel
mailing list