[osg-users] Preparing to make 3.5.3 dev release, please test
Robert Osfield
robert.osfield at gmail.com
Thu Jun 2 12:03:51 PDT 2016
Hi Jannik,
I have done some more searching online and come across a compile
version variable that exist in Cmake 2.8 and later, I've just added
then follow to the root CMakeLists.txt:
IF(${CMAKE_MAJOR_VERSION} GREATER 2 AND CMAKE_CXX_COMPILER_VERSION
VERSION_GREATER 4.9)
SET(OSG_AGGRESSIVE_WARNING_FLAGS
${OSG_AGGRESSIVE_WARNING_FLAGS} -Wshadow)
ENDIF()
Works for me under Kubuntu 16.04 with modern version of gcc (5.3.1).
I will now check my Kubuntu 14.04 to see if the warnings appear...
fingers crossed.
More information about the osg-users
mailing list