From 1f1905c56bbe6225663930e2cab714fb6e60de29 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Wed, 18 Nov 2009 03:01:48 -0600 Subject: Silenced some compiler warnings on Linux. --- linden/indra/cmake/00-Common.cmake | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'linden/indra') diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 8c6ca2d..9b3f423 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake @@ -112,15 +112,16 @@ if (LINUX) endif (NOT ${GXX_VERSION} MATCHES " 4.1.*Red Hat") endif (${GXX_VERSION} STREQUAL ${CXX_VERSION}) - # GCC 4.3 introduces a pile of obnoxious new warnings, which we - # treat as errors due to -Werror. Quiet the most offensive and - # widespread of them. - if (${CXX_VERSION} MATCHES "4.3") - add_definitions(-Wno-deprecated -Wno-parentheses) - endif (${CXX_VERSION} MATCHES "4.3") + # Silence certain types of compiler warnings, to prevent them from + # breaking compile (due to -Werror treating them as errors). + + add_definitions( + -Wno-deprecated + -Wno-parentheses + -Wno-unused-variable + ) - # End of hacks. add_definitions( -DLL_LINUX=1 -- cgit v1.1