Fixed warning and quitened ones caused by 3rd party headers.

This commit is contained in:
Robert Osfield
2016-07-02 12:13:08 +01:00
parent 40d5d1712d
commit 5bfc7b9908
2 changed files with 6 additions and 1 deletions

View File

@@ -4,5 +4,10 @@ SET(TARGET_SRC ReaderWriterEXR.cpp )
SET(TARGET_LIBRARIES_VARS ${OPENEXR_LIBRARIES_VARS} ZLIB_LIBRARY)
IF(CMAKE_COMPILER_IS_GNUCXX)
# Remove -Wshadow flag as it barfs on ffmoeg headers
STRING(REGEX REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
ENDIF()
#### end var setup ###
SETUP_PLUGIN(exr)

View File

@@ -248,7 +248,7 @@ public:
return WriteResult::ERROR_IN_WRITING_FILE;
}
protected:
bool writeEXRStream(const osg::Image &img, std::ostream& fout, const std::string &fileName) const
bool writeEXRStream(const osg::Image &img, std::ostream& fout, const std::string& /*fileName*/) const
{
bool writeOK = true;