Don't error on strict-aliasing warnings.

These warnings occur in release mode for the double-to-uint64 cast used
for transmitting double values.
This commit is contained in:
Peter Johnson
2015-08-04 20:38:31 -07:00
parent cd53feb193
commit 492463411d

View File

@@ -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