Fixed -Wextra warnings

This commit is contained in:
Robert Osfield 2016-06-08 09:20:16 +01:00
parent 8ba7998623
commit ef73d2449e
3 changed files with 12 additions and 4 deletions

View File

@ -79,10 +79,6 @@ protected:
Operation():
_keep(false) {}
Operation(const Operation& op):
_name(op._name),
_keep(op._keep) {}
virtual ~Operation() {}
std::string _name;

View File

@ -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

View File

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