Fixed -Wextra warnings

remotes/origin/Deprecated_master_20th_November_2022
Robert Osfield 8 years ago
parent 8ba7998623
commit ef73d2449e

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

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

Loading…
Cancel
Save