Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/MRMesh/MRAligningTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include "MRAffineXf3.h"
#include "MRQuaternion.h"
#include "MRToFromEigen.h"
#include <Eigen/Eigenvalues>
#include "MRGTest.h"
#include <Eigen/Eigenvalues>

namespace MR
{
Expand Down
27 changes: 2 additions & 25 deletions source/MRMesh/MRAligningTransform.h
Original file line number Diff line number Diff line change
@@ -1,31 +1,8 @@
#pragma once

#include "MRMeshFwd.h"
#include "MRAffineXf3.h"

#pragma warning(push)
#pragma warning(disable: 4068) // unknown pragmas
#pragma warning(disable: 5054) // operator '|': deprecated between enumerations of different types

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#if __GNUC__ == 12
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
#endif

#include <Eigen/Core>

#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

#pragma warning(pop)
#include <MRPch/MREigenCore.h>

namespace MR
{
Expand Down
8 changes: 6 additions & 2 deletions source/MRMesh/MRBestFit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
#include "MRGTest.h"
#include <cassert>

// unknown pragmas
#pragma warning(disable:4068)
#pragma warning(push)
#pragma warning(disable:4068) // unknown pragma 'clang'
#pragma warning(disable:4127) //conditional expression is constant
#pragma warning(disable:4464) // relative include path contains '..'
#pragma warning(disable:5054) //operator '&': deprecated between enumerations of different types
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#include <Eigen/Eigenvalues>
#pragma clang diagnostic pop
#pragma warning(pop)

namespace MR
{
Expand Down
1 change: 0 additions & 1 deletion source/MRMesh/MRLaplacian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "MRMeshComponents.h"
#include "MRGTest.h"
#include "MRPch/MRTBB.h"

#include <Eigen/SparseCholesky>

namespace MR
Expand Down
2 changes: 2 additions & 0 deletions source/MRMesh/MRLaplacian.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#pragma warning(push)
#pragma warning(disable: 4068) // unknown pragmas
#pragma warning(disable: 4127) // conditional expression is constant
#pragma warning(disable: 4464) // relative include path contains '..'
#pragma warning(disable: 5054) // operator '|': deprecated between enumerations of different types
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
Expand Down
25 changes: 1 addition & 24 deletions source/MRMesh/MRMeshEigen.h
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
#pragma once

#include "MRMeshFwd.h"

#pragma warning(push)
#pragma warning(disable: 4068) // unknown pragmas
#pragma warning(disable: 4127) // conditional expression is constant
#pragma warning(disable: 4464) // relative include path contains '..'
#pragma warning(disable: 4643) // Forward declaring 'tuple' in namespace std is not permitted by the C++ Standard.
#pragma warning(disable: 5054) // operator '|': deprecated between enumerations of different types

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <Eigen/Core>
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif


#pragma warning(pop)
#include <MRPch/MREigenCore.h>

namespace MR
{
Expand Down
3 changes: 3 additions & 0 deletions source/MRMesh/MRSignal.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#pragma once

#pragma warning(push)
#pragma warning(disable: 4619) //#pragma warning: there is no warning number
#include <boost/signals2/signal.hpp>
#pragma warning(pop)

namespace MR
{
Expand Down
22 changes: 1 addition & 21 deletions source/MRMesh/MRToFromEigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,7 @@
#include "MRSymMatrix3.h"
#include "MRMatrix2.h"
#include "MRMatrix3.h"

// unknown pragmas
#pragma warning(disable:4068)
#pragma warning(disable:4127) //C4127. "Consider using 'if constexpr' statement instead"

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#if __GNUC__ == 12
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
#endif
#include <Eigen/Core>
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#include <MRPch/MREigenCore.h>

namespace MR
{
Expand Down
28 changes: 28 additions & 0 deletions source/MRPch/MREigenCore.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#pragma warning(push)
#pragma warning(disable: 4068) // unknown pragmas
#pragma warning(disable: 4127) // conditional expression is constant
#pragma warning(disable: 4464) // relative include path contains '..'
#pragma warning(disable: 4643) // Forward declaring 'tuple' in namespace std is not permitted by the C++ Standard.
#pragma warning(disable: 5054) // operator '|': deprecated between enumerations of different types

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-anon-enum-enum-conversion"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#if __GNUC__ == 12
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
#endif
#include <Eigen/Core>
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

#pragma warning(pop)

1 change: 1 addition & 0 deletions source/MRPch/MRPch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="MREigenCore.h" />
<ClInclude Include="MRWasm.h" />
<ClInclude Include="MRAsyncLaunchType.h" />
<ClInclude Include="MREigen.h" />
Expand Down
1 change: 1 addition & 0 deletions source/MRPch/MRPch.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ClInclude Include="MRSuppressWarning.h" />
<ClInclude Include="MRAsyncLaunchType.h" />
<ClInclude Include="MRWasm.h" />
<ClInclude Include="MREigenCore.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="MRPch.cpp" />
Expand Down