Skip to content

Commit

Permalink
ignore "-Werror=deprecated" for Eigen CXX11 Tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Oct 13, 2023
1 parent e9fd1ef commit a3a69d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/onnxruntime/core/common/eigen_common_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@
#pragma warning(disable : 4245)
#pragma warning(disable : 4127)
#endif

#if defined(__GNUC__) and __cplusplus >= 202002L
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=deprecated"
#endif
#include "unsupported/Eigen/CXX11/Tensor"
#if defined(__GNUC__) and __cplusplus >= 202002L
#pragma GCC diagnostic pop
#endif

#if defined(__GNUC__)
#pragma GCC diagnostic pop
Expand Down

0 comments on commit a3a69d0

Please sign in to comment.