Skip to content
Snippets Groups Projects
Commit e0c541b7 authored by Holger Friedrich's avatar Holger Friedrich
Browse files

enable some compiler warnings per default

parent 6c2b57a0
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,17 @@ project(bgs)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
IF(UNIX)
# add some standard warnings
ADD_DEFINITIONS(-Wno-variadic-macros -Wno-long-long -Wall -Wextra -Winit-self -Woverloaded-virtual -Wsign-promo -Wsynth -Wno-unused-parameter -pedantic -Woverloaded-virtual -Wno-unknown-pragmas)
# -ansi does not compile with sjn module
#ADD_DEFINITIONS(-ansi)
# if you like to have warinings about conversions, e.g. double->int or double->float etc., or float compare
#ADD_DEFINITIONS(-Wconversion -Wfloat-equal)
endif(UNIX)
find_package(OpenCV REQUIRED)
if(${OpenCV_VERSION} VERSION_LESS 2.3.1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment