From 492463411d1a2c75487cbc298434d2b9e855cdf4 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 4 Aug 2015 20:38:31 -0700 Subject: [PATCH] Don't error on strict-aliasing warnings. These warnings occur in release mode for the double-to-uint64 cast used for transmitting double values. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8c47f1851..131944591d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(ntcore) if (MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX /D_SCL_SECURE_NO_WARNINGS") else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wformat=2 -Wall -Wextra -Werror -pedantic -Wno-unused-parameter") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wformat=2 -Wall -Wextra -Werror -pedantic -Wno-unused-parameter -Wno-error=strict-aliasing") endif() # This must be a macro(), as inside a function string() can only