Clang complains that OpenCascade checks whether or not a certain undefined macro
evaluates to true. Get around this with diagnostic guards.
_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \
_Pragma("GCC diagnostic ignored \"-Wignored-attributes\"") \
_Pragma("GCC diagnostic ignored \"-Wmisleading-indentation\"") \
+_Pragma("GCC diagnostic ignored \"-Wundef\"") \
_Pragma("GCC diagnostic warning \"-Wpragmas\"")
# define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \
#include <string>
// opencascade needs "HAVE_CONFIG_H" to be exported...
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define HAVE_CONFIG_H
#include <TopoDS_Shape.hxx>
#include <TopoDS_Face.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <gp_Pnt.hxx>
#undef HAVE_CONFIG_H
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#ifdef DEAL_II_WITH_TRILINOS
# ifdef DEAL_II_WITH_MPI
# include <Epetra_MpiComm.h>
# include "Teuchos_RCP.hpp"
# include "Epetra_SerialComm.h"
#endif
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams