Fix issue a different way and supress new gcc 4.8 warning

This commit is contained in:
Drake Arconis
2013-05-05 19:24:13 -07:00
parent 36416743d4
commit e0ef803ed5
4 changed files with 11 additions and 3 deletions

View File

@@ -159,6 +159,11 @@ if (LINUX)
add_definitions(-Wno-unused-but-set-variable)
endif (NOT ${CXX_VERSION} LESS 460)
#gcc 4.8 boost spam wall
if(NOT ${CXX_VERSION} LESS 480)
add_definitions(-Wno-unused-local-typedefs)
endif (NOT ${CXX_VERSION} LESS 480)
# End of hacks.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")