From: Guilherme Maciel Ferreira Date: Fri, 15 Apr 2011 11:02:18 +0000 (+0200) Subject: Commented the -O2 optmization level because it activates the -Wstrict-aliasing warnin... X-Git-Tag: v1.0~78 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=6e09425ce07d6be3712592d51cde6ac2912e7ef3;p=pingcheck Commented the -O2 optmization level because it activates the -Wstrict-aliasing warning, which is issued by the boost-net-dns libraries. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d2a2cb3..cd7ea83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,8 @@ set(CMAKE_BUILD_TYPE Debug) # compiler: add definitions and arguments to the compiler add_definitions( -Wall -Wextra -Weffc++ -Wshadow -Wcast-qual -Wconversion -pedantic - -Werror -O2 + -Werror + #-O2 -DVERSION_STRING=${VERSION} -DPROJECT_NAME=\"${PROJECT_NAME}\" )