provoke compile error:

"dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]"
This commit is contained in:
Matthias Loy 2014-08-13 13:19:02 +02:00
parent 1a6426ac19
commit f97723dbb7

View File

@ -7,6 +7,10 @@ ELSE(JSONCPP_LIB_BUILD_SHARED)
ENDIF(JSONCPP_LIB_BUILD_SHARED)
if( CMAKE_COMPILER_IS_GNUCXX )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=strict-aliasing")
endif( CMAKE_COMPILER_IS_GNUCXX )
SET( JSONCPP_INCLUDE_DIR ../../include )
SET( PUBLIC_HEADERS