From 506b64e3e7df5d29ebe4229f728f6c84c8a088ec Mon Sep 17 00:00:00 2001 From: Nicky Date: Tue, 12 Nov 2013 16:07:40 +0100 Subject: [PATCH] Some changes to make GCC 4.8.1 happy. --- indra/cmake/00-Common.cmake | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 3e1a632407..1ac5174054 100755 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -166,7 +166,7 @@ if (LINUX) OUTPUT_STRIP_TRAILING_WHITESPACE) # Gentoo defines _FORTIFY_SOURCE by default - if (NOT ${GXX_VERSION} MATCHES "Gentoo 4.7.*") + if (NOT ${GXX_VERSION} MATCHES "Gentoo 4.[78].*") # if (${GXX_VERSION} STREQUAL ${CXX_VERSION}) @@ -178,7 +178,7 @@ if (LINUX) endif (${GXX_VERSION} STREQUAL ${CXX_VERSION}) # Gentoo defines _FORTIFY_SOURCE by default - endif (NOT ${GXX_VERSION} MATCHES "Gentoo 4.7.*") + endif (NOT ${GXX_VERSION} MATCHES "Gentoo 4.[78].*") # # Let's actually get a numerical version of gxx's version @@ -212,6 +212,13 @@ if (LINUX) set(CMAKE_CXX_FLAGS "-Wno-attributes ${CMAKE_CXX_FLAGS}") endif (${CXX_VERSION_NUMBER} GREATER 470) # + # Disable unsed local typedef warnings for GCC >= 4.8. It causes a lot of warning/errors in boost. + if(${CXX_VERSION_NUMBER} GREATER 480) + set(CMAKE_CXX_FLAGS "-Wno-unused-local-typedefs ${CMAKE_CXX_FLAGS}") + endif (${CXX_VERSION_NUMBER} GREATER 480) + # + + # End of hacks.