tumi8 / vermont

Vermont (VERsatile MONitoring Toolkit) is an open-source software toolkit for the creation and processing of network flow data.
https://www.net.in.tum.de/research/software/#vermont
GNU General Public License v2.0
58 stars 22 forks source link

Compiler warnings #48

Closed bluca closed 8 years ago

bluca commented 8 years ago

Hi,

These commits from @nickbroon add a cppcheck target to CMake, and fix a lot of the warnings generated.

nickbroon commented 8 years ago

Yes. As mentioned in the commit comment for 103813795e67 CMAKE_C_FLAGS_RELEASE will default to -O3 for almost all compilers/targets. Have a look at generated CMakeCache.txt to confirm this. You can see this is the case for gcc and the intel compiler: https://github.com/Kitware/CMake/blob/dfa01fd005502cf8d80d007bb42d21e2817d4d73/Modules/Compiler/GNU.cmake https://github.com/Kitware/CMake/blob/a100888b757ec48781d873824e13b0255602162d/Modules/Compiler/Intel-C.cmake

ogasser commented 8 years ago

Thanks for your contributions!

bluca commented 8 years ago

:+1: More coming very shortly :-)