Skip to content

Commit

Permalink
macOS: suppress some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 18, 2020
1 parent 38fcf77 commit 54e29ac
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/3rdParty/salomesmesh/src/SMESH/GEOMUtils.cpp
Expand Up @@ -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 <Standard_Stream.hxx>

#include <GEOMUtils.hxx>
Expand Down
6 changes: 6 additions & 0 deletions src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
Expand Up @@ -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
Expand Down
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions src/Gui/3Dconnexion/GuiNativeEventMac.cpp
Expand Up @@ -36,6 +36,12 @@ With special thanks to marcxs for making the first steps
#include "GuiApplicationNativeEventAware.h"
#include <Base/Console.h>

// 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;

Expand Down

0 comments on commit 54e29ac

Please sign in to comment.