Fixed -Wextra warnings
This commit is contained in:
@@ -420,6 +420,17 @@ SET(TARGET_SRC
|
||||
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
################################################################################
|
||||
## Quieten warnings that a due to optional code paths
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# Remove -Wextra flag as it barfs on ffmoeg headers
|
||||
STRING(REGEX REPLACE "-Wextra" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
SET(TARGET_LIBRARIES OpenThreads)
|
||||
|
||||
SET(TARGET_EXTERNAL_LIBRARIES
|
||||
|
||||
@@ -795,6 +795,7 @@ KdTreeBuilder::KdTreeBuilder():
|
||||
}
|
||||
|
||||
KdTreeBuilder::KdTreeBuilder(const KdTreeBuilder& rhs):
|
||||
osg::Object(rhs),
|
||||
osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN),
|
||||
_buildOptions(rhs._buildOptions),
|
||||
_kdTreePrototype(rhs._kdTreePrototype)
|
||||
|
||||
Reference in New Issue
Block a user