From b8cf4ea29de72a79201c05b4de19b3c509124926 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 16 Jun 2015 21:19:31 -0700 Subject: [PATCH] use -Woverloaded-virtual with g++. quiet compiler warnings --- CMakeLists.txt | 2 +- libraries/entities-renderer/src/RenderablePolyVoxEntityItem.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c283bfff17..99d4a75585 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.h b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.h index 77aeb24f2a..f05e02ac69 100644 --- a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.h +++ b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.h @@ -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();