Skip to content

Commit

Permalink
Added disabling of "warning: format not a string literal, argument ty…
Browse files Browse the repository at this point in the history
…pes not checked" under FreeBSD as these errors are being generated from std library ostream implementation.
  • Loading branch information
robertosfield committed Feb 3, 2009
1 parent 17241da commit 1f35518
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -548,6 +548,15 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
# 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)

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")


ELSE(CMAKE_COMPILER_IS_GNUCXX)
IF(MSVC)
# FIXME: What are good aggressive warning flags for Visual Studio?
Expand Down

0 comments on commit 1f35518

Please sign in to comment.