diff --git a/src/osgPlugins/dxf/dxfEntity.cpp b/src/osgPlugins/dxf/dxfEntity.cpp index 896e1e131..77e432aa5 100644 --- a/src/osgPlugins/dxf/dxfEntity.cpp +++ b/src/osgPlugins/dxf/dxfEntity.cpp @@ -475,9 +475,9 @@ dxfPolyline::assign(dxfFile* dxf, codeValue& cv) void dxfPolyline::drawScene(scene* sc) { - Matrixd m; - getOCSMatrix(_ocs, m); - sc->ocs(m); + Matrixd matrx; + getOCSMatrix(_ocs, matrx); + sc->ocs(matrx); std::vector vlist; std::vector qlist; Vec3d a, b, c, d; diff --git a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp index efd9782ea..4de143d22 100644 --- a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp +++ b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp @@ -169,9 +169,9 @@ bool FFmpegDecoder::open(const std::string & filename, FFmpegParameters* paramet { m_audio_decoder.open(m_audio_stream, parameters); } - catch (const std::runtime_error & error) + catch (const std::runtime_error & rerror) { - OSG_WARN << "FFmpegImageStream::open audio failed, audio stream will be disabled: " << error.what() << std::endl; + OSG_WARN << "FFmpegImageStream::open audio failed, audio stream will be disabled: " << rerror.what() << std::endl; } } diff --git a/src/osgPlugins/ffmpeg/FFmpegPacket.hpp b/src/osgPlugins/ffmpeg/FFmpegPacket.hpp index 748820e8f..e06bd8bb6 100644 --- a/src/osgPlugins/ffmpeg/FFmpegPacket.hpp +++ b/src/osgPlugins/ffmpeg/FFmpegPacket.hpp @@ -26,17 +26,17 @@ namespace osgFFmpeg packet.data = 0; } - explicit FFmpegPacket(const Type type) : - type(type) - { + explicit FFmpegPacket(const Type t) : + type(t) + { packet.data = 0; } - explicit FFmpegPacket(const AVPacket & packet) : - packet(packet), + explicit FFmpegPacket(const AVPacket & p) : + packet(p), type(PACKET_DATA) - { - + { + } void clear() diff --git a/src/osgPlugins/lws/SceneLoader.cpp b/src/osgPlugins/lws/SceneLoader.cpp index a3ecdbda0..b8cb81f43 100644 --- a/src/osgPlugins/lws/SceneLoader.cpp +++ b/src/osgPlugins/lws/SceneLoader.cpp @@ -162,12 +162,12 @@ osg::Group *SceneLoader::load(const std::string &filename, const osgDB::ReaderWr // build objects and object animations typedef std::map > PAT_map; PAT_map pats; - int j = 0; - for (Scene_object_list::iterator i=scene_objects_.begin(); i!=scene_objects_.end(); ++i, ++j) { - osg::ref_ptr pat = pats[j]; + int p = 0; + for (Scene_object_list::iterator i=scene_objects_.begin(); i!=scene_objects_.end(); ++i, ++p) { + osg::ref_ptr pat = pats[p]; if (!pat.valid()) { pat = new osg::PositionAttitudeTransform; - pats[j] = pat; + pats[p] = pat; } pat->setName(i->name); diff --git a/src/osgPlugins/ogr/CMakeLists.txt b/src/osgPlugins/ogr/CMakeLists.txt index 1907f5e6d..01b71e360 100644 --- a/src/osgPlugins/ogr/CMakeLists.txt +++ b/src/osgPlugins/ogr/CMakeLists.txt @@ -5,7 +5,7 @@ SET(TARGET_SRC ReaderWriterOGR.cpp) SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY ) IF(CMAKE_COMPILER_IS_GNUCXX) - # Remove -pedantic flag as it barfs on ffmoeg headers + # Remove -Wshadow flag as it barfs on ffmoeg headers STRING(REGEX REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ENDIF() diff --git a/src/osgPlugins/svg/CMakeLists.txt b/src/osgPlugins/svg/CMakeLists.txt index 8727c7543..97c3812ee 100644 --- a/src/osgPlugins/svg/CMakeLists.txt +++ b/src/osgPlugins/svg/CMakeLists.txt @@ -2,7 +2,12 @@ INCLUDE_DIRECTORIES( ${RSVG_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS}) LINK_DIRECTORIES(${RSVG_LIBRARY_DIRS} ${CAIRO_LIBRARY_DIRS}) LINK_LIBRARIES(${RSVG_LIBRARIES} ${CAIRO_LIBRARIES}) - SET(TARGET_SRC ReaderWriterSVG.cpp ) + +IF(CMAKE_COMPILER_IS_GNUCXX) + # Remove -pedantic flag as it barfs on ffmoeg headers + STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +ENDIF() + #### end var setup ### SETUP_PLUGIN(svg svg)