suppress -Woverloaded-virtual warnings from smesh
This commit is contained in:
parent
40c25e0809
commit
3377b42642
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||
#if defined(__GNUG__) && !defined(__clang__)
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user