use -Woverloaded-virtual with g++. quiet compiler warnings

This commit is contained in:
Seth Alves 2015-06-16 21:19:31 -07:00
parent 0ef75da5d5
commit b8cf4ea29d
2 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ if (WIN32)
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fno-strict-aliasing -Wno-unused-parameter")
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb -Woverloaded-virtual")
endif ()
endif(WIN32)

View file

@ -45,6 +45,7 @@ public:
bool& keepSearching, OctreeElement*& element, float& distance, BoxFace& face,
void** intersectedObject, bool precisionPicking) const;
using PolyVoxEntityItem::setVoxelSurfaceStyle;
virtual void setVoxelSurfaceStyle(PolyVoxSurfaceStyle voxelSurfaceStyle);
void getModel();