suppress -Woverloaded-virtual warnings from smesh

This commit is contained in:
wmayer 2016-12-30 12:11:35 +01:00
parent 40c25e0809
commit 3377b42642
3 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,11 @@ if(BUILD_FEM_VTK)
add_definitions(-DFC_USE_VTK)
endif(BUILD_FEM_VTK)
# suppress warnings from smesh
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
endif()
add_subdirectory(App)
if(BUILD_GUI)

View File

@ -38,6 +38,10 @@
#include <Standard_Version.hxx>
#ifdef HAVE_SMESH
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Woverloaded-virtual"
#endif
#include <SMESH_Gen.hxx>
#include <StdMeshers_MaxLength.hxx>
#include <StdMeshers_LocalLength.hxx>
@ -59,6 +63,9 @@
#include <NETGENPlugin_Hypothesis_2D.hxx>
#include <NETGENPlugin_SimpleHypothesis_2D.hxx>
#endif // HAVE_NETGEN
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#endif // HAVE_SMESH
using namespace MeshPart;

View File

@ -25,7 +25,7 @@
#include <Python.h>
#endif
#if defined(__GNUG__) && !defined(__APPLE__)
#if defined(__GNUG__) && !defined(__clang__)
#pragma implementation
#endif