mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-06 10:55:57 +02:00
provoke compile error:
"dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]"
This commit is contained in:
parent
1a6426ac19
commit
f97723dbb7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user