Skip to content

Commit

Permalink
Disable -Wshadow on GNU compile as OGR headers have shadowing paramet…
Browse files Browse the repository at this point in the history
…ers we can't fix.
  • Loading branch information
robertosfield committed May 25, 2016
1 parent 29d4a02 commit f268afd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/osgPlugins/ogr/CMakeLists.txt
Expand Up @@ -4,5 +4,10 @@ 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
STRING(REGEX REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
ENDIF()

#### end var setup ###
SETUP_PLUGIN(ogr)

0 comments on commit f268afd

Please sign in to comment.