From Laurens Voerman, "With fstream inheritaince now removed the warning can be enabled again."
This commit is contained in:
@@ -800,14 +800,11 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
|
||||
ELSEIF(MSVC)
|
||||
# FIXME: What are good aggressive warning flags for Visual Studio?
|
||||
# And do we need to further subcase this for different versions of VS?
|
||||
# CMake variables: MSVC60, MSVC70, MSVC71, MSVC80, CMAKE_COMPILER_2005
|
||||
#disable specific warning level 4 warnings:
|
||||
#C4100 'identifier' : unreferenced formal parameter
|
||||
#C4127 Error Message conditional expression is constant
|
||||
#C4706 assignment within conditional expression
|
||||
SET(OSG_AGGRESSIVE_WARNING_FLAGS /W4 /wd4706 /wd4127 /wd4100)
|
||||
IF(MSVC11)
|
||||
SET(OSG_AGGRESSIVE_WARNING_FLAGS ${OSG_AGGRESSIVE_WARNING_FLAGS} /wd4250)
|
||||
ENDIF()
|
||||
|
||||
ELSEIF(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
SET(OSG_AGGRESSIVE_WARNING_FLAGS -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wno-overloaded-virtual)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user