macOS: suppress some warnings

This commit is contained in:
wmayer
2020-10-18 16:18:34 +02:00
parent 38fcf770ab
commit 54e29ac2b8
4 changed files with 25 additions and 0 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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"

View File

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