diff --git a/src/Mod/Fem/CMakeLists.txt b/src/Mod/Fem/CMakeLists.txt index 3b7f9740c..6f3c59f51 100755 --- a/src/Mod/Fem/CMakeLists.txt +++ b/src/Mod/Fem/CMakeLists.txt @@ -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) diff --git a/src/Mod/MeshPart/App/Mesher.cpp b/src/Mod/MeshPart/App/Mesher.cpp index 82f0cd105..7ecb39ec7 100644 --- a/src/Mod/MeshPart/App/Mesher.cpp +++ b/src/Mod/MeshPart/App/Mesher.cpp @@ -38,6 +38,10 @@ #include #ifdef HAVE_SMESH +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Woverloaded-virtual" +#endif #include #include #include @@ -59,6 +63,9 @@ #include #include #endif // HAVE_NETGEN +#if defined(__clang__) +# pragma clang diagnostic pop +#endif #endif // HAVE_SMESH using namespace MeshPart; diff --git a/src/Mod/Path/libarea/PythonStuff.cpp b/src/Mod/Path/libarea/PythonStuff.cpp index 6cbe1dc1f..de4d07fcf 100644 --- a/src/Mod/Path/libarea/PythonStuff.cpp +++ b/src/Mod/Path/libarea/PythonStuff.cpp @@ -25,7 +25,7 @@ #include #endif -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(__clang__) #pragma implementation #endif