From 6e09425ce07d6be3712592d51cde6ac2912e7ef3 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Fri, 15 Apr 2011 13:02:18 +0200 Subject: [PATCH] Commented the -O2 optmization level because it activates the -Wstrict-aliasing warning, which is issued by the boost-net-dns libraries. --- CMakeLists.txt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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}\" ) -- 1.7.1