From cb37bf244664fc5014ba6aad6aabbe054bf6cc02 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 5 Feb 2009 10:40:43 +0000 Subject: [PATCH] Removed the --format=2 entry as it was reported problems with buggy standard library headers --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fdce8907..b9b07f7a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -547,14 +547,9 @@ IF(CMAKE_COMPILER_IS_GNUCXX) # errors instead of warnings for certain issues, including superfluous # semicolons and commas, and the use of long long. -fpermissive seems # to be the workaround. - SET(OSG_AGGRESSIVE_WARNING_FLAGS -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive) + SET(OSG_AGGRESSIVE_WARNING_FLAGS -Wall -Wparentheses -Wuninitialized -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive) - IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") - - # disable the "warning: format not a string literal and no format arguments" emited from std library ostream support - SET(OSG_AGGRESSIVE_WARNING_FLAGS ${OSG_AGGRESSIVE_WARNING_FLAGS} -Wformat=0) - - ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + # Previous included -Wformat=2 in OSG_AGGRESSIVE_WARNING_FLAGS but had to remove it due to standard library errors ELSE(CMAKE_COMPILER_IS_GNUCXX)