Review Request 114466: Remove noisy compiler warnings

Milian Wolff mail at milianw.de
Sun Dec 15 18:18:30 UTC 2013


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



languages/cpp/cppduchain/templatedeclaration.cpp
<http://git.reviewboard.kde.org/r/114466/#comment32662>

    is the KDevelop:: qualification required here? If not, please remove it.



projectmanagers/cmake/cmakeutils.cpp
<http://git.reviewboard.kde.org/r/114466/#comment32663>

    While at it, please add whitespaces around the = operator.



projectmanagers/cmake/tests/testhelpers.h
<http://git.reviewboard.kde.org/r/114466/#comment32664>

    In  a test, I'd say use QVERIFY instead of Q_ASSERT - or is this used outside of test functions, i.e. in non-void returning helper functions?
    
    If QVERIFY doesn't work, maybe check for it and QFATAL or similar explicitly - we want to test to fail even in release mode after all.



projectmanagers/custom-buildsystem/custombuildsystemconfigwidget.cpp
<http://git.reviewboard.kde.org/r/114466/#comment32665>

    this will now fail to compile as hasAnyConfigurations is not declared here yet.


- Milian Wolff


On Dec. 14, 2013, 8:37 p.m., lycantrophe li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/114466/
> -----------------------------------------------------------
> 
> (Updated Dec. 14, 2013, 8:37 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
> -----
> 
>   projectmanagers/custom-buildsystem/custombuildsystemconfigwidget.cpp 042d523 
>   projectmanagers/cmake/cmakeutils.cpp 9aa22ca 
>   projectmanagers/cmake/tests/testhelpers.h 5cf552c 
>   languages/cpp/cppduchain/cppducontext.h fdbe165 
>   languages/cpp/cppduchain/templatedeclaration.cpp 6b48b7a 
> 
> 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/24fb059d/attachment.html>


More information about the KDevelop-devel mailing list