Enable more compiler warnings
ClosedPublic

Authored by wojnilowicz on May 7 2018, 12:41 PM.

Details

Summary

Purpose of this patch is to enhance code quality. It also enhances readability of flags used for different compilers.

Test Plan

Tested on GCC only. Compiling on Clang 6 fails for me, even before the patch.

Does anybody use DebugKMM, Debugfull or Profile? It seems useless to me, so I would like to remove it.

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
wojnilowicz requested review of this revision.May 7 2018, 12:41 PM
wojnilowicz created this revision.
tbaumgart requested changes to this revision.May 7 2018, 1:17 PM

Running this with

g++-6 (SUSE Linux) 6.2.1 20160826 [gcc-6-branch revision 239773]

produces a whole bunch of different (and useful as far as I have seen) warnings. And yes, I use DebugKMM, Debugfull or Profile from time to time (mostly Debugfull) so they should stay.

CMakeLists.txt
270

Missing quote after as-needed here.

This revision now requires changes to proceed.May 7 2018, 1:17 PM
wojnilowicz marked an inline comment as done.May 7 2018, 1:55 PM

Running this with

g++-6 (SUSE Linux) 6.2.1 20160826 [gcc-6-branch revision 239773]

produces a whole bunch of different (and useful as far as I have seen) warnings. And yes, I use DebugKMM, Debugfull or Profile from time to time (mostly Debugfull) so they should stay.

Ok. Feel free to add any warning you'd like. I feel, they can make us only good.

CMakeLists.txt
270

Sharp sight! :) I see that this conditional branch was from previous version of the patch, so it doesn't exist anymore.

This revision was not accepted when it landed; it landed in state Needs Revision.May 7 2018, 1:56 PM
This revision was automatically updated to reflect the committed changes.
wojnilowicz marked an inline comment as done.