I looked into this while investigating Issue #97 reported by Max. I noticed that currently, all compiler warnings are suppressed in CMakeList.txt, which could prevent many potential bugs to slip through the gaps when the compiler could have caught them. Based on the commit history, it appears that the warning messages were originally turned off to suppress excessive warnings from stlplus, a piece of external source code included in the RAT build chain. This PR seeks to mitigate this problem by doing the following:
Global compile warnings are turned ON. I am only using the default rule sets (with additional warning flags) for now. Ideally we should move to even stricter rulesets like -Werror -Wall -Wextra, as well as the warning options proposed by Max in the original issue, but these options produced so many warnings that i have decided to not include them at the moment.
Errors related to stlplus source files are suppressed in the stlplus and RAT_DICT build targets directly.
stlplus headers are now moved to their own directory. Previously, both RAT and stlplus headers were located at include/RAT, and were simultaneously included during build. stlplus headers are now moved to include/stlplus, and this folder is now included during build as system headers such that warnings coming from them are suppressed.
Fixed a couple of warnings emitted by the compiler after they are turned back on. Particularly in daq/NoiseProc, gen/DecayChain and gen/BetaFunction
Modified the stlplus source files to fix a couple exception warnings that won't go away even when warnings are turned off.
I have included one commit from PR #111 to ensure that these two requests do not conflict from each other, since they both make edits to the stlplus source files.
I reverted this because I realizes it breaks the compilation of EosSimulations without corresponding changes there. And worth updating the example RatpacExperiment as well.
I looked into this while investigating Issue #97 reported by Max. I noticed that currently, all compiler warnings are suppressed in CMakeList.txt, which could prevent many potential bugs to slip through the gaps when the compiler could have caught them. Based on the commit history, it appears that the warning messages were originally turned off to suppress excessive warnings from
stlplus
, a piece of external source code included in the RAT build chain. This PR seeks to mitigate this problem by doing the following:-Werror -Wall -Wextra
, as well as the warning options proposed by Max in the original issue, but these options produced so many warnings that i have decided to not include them at the moment.include/RAT
, and were simultaneously included during build. stlplus headers are now moved toinclude/stlplus
, and this folder is now included during build as system headers such that warnings coming from them are suppressed.daq/NoiseProc
,gen/DecayChain
andgen/BetaFunction
I have included one commit from PR #111 to ensure that these two requests do not conflict from each other, since they both make edits to the stlplus source files.