diff --git a/src/3rdParty/salomesmesh/src/SMESH/GEOMUtils.cpp b/src/3rdParty/salomesmesh/src/SMESH/GEOMUtils.cpp index 7ceb61e03fde..3d8131b35986 100644 --- a/src/3rdParty/salomesmesh/src/SMESH/GEOMUtils.cpp +++ b/src/3rdParty/salomesmesh/src/SMESH/GEOMUtils.cpp @@ -20,6 +20,12 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Suppress warning due to use of #import an macOS inside Aspect_RenderingContext.hxx +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wimport-preprocessor-directive-pedantic" +#endif + #include #include diff --git a/src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp b/src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp index 7ab201cef966..24dc2d00a670 100644 --- a/src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp +++ b/src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp @@ -20,6 +20,12 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Suppress warning due to use of #import an macOS inside Aspect_RenderingContext.hxx +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wimport-preprocessor-directive-pedantic" +#endif + // File : SMESH_Mesh.cxx // Author : Paul RASCLE, EDF // Module : SMESH diff --git a/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Cartesian_3D.cpp b/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Cartesian_3D.cpp index 34562bc39532..3317be85d914 100644 --- a/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Cartesian_3D.cpp +++ b/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Cartesian_3D.cpp @@ -22,6 +22,13 @@ // File : StdMeshers_Cartesian_3D.cxx // Module : SMESH // + +// Suppress warning due to use of #import an macOS inside Aspect_RenderingContext.hxx +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wimport-preprocessor-directive-pedantic" +#endif + #include "StdMeshers_Cartesian_3D.hxx" #include "SMDS_MeshNode.hxx" diff --git a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp index 5b6196f36358..b931ca985de9 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp @@ -36,6 +36,12 @@ With special thanks to marcxs for making the first steps #include "GuiApplicationNativeEventAware.h" #include +// Suppress warnings to kConnexionMsgDeviceState and tdxAppID +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wfour-char-constants" +#endif + UInt16 Gui::GuiNativeEvent::tdxClientID = 0; uint32_t Gui::GuiNativeEvent::lastButtons = 0;