mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
Add intel warning push/pop
This commit is contained in:
parent
2de6e1d142
commit
33f3430d0c
@ -18,6 +18,7 @@
|
|||||||
# pragma warning(disable: 4100) // warning C4100: Unreferenced formal parameter
|
# pragma warning(disable: 4100) // warning C4100: Unreferenced formal parameter
|
||||||
# pragma warning(disable: 4512) // warning C4512: Assignment operator was implicitly defined as deleted
|
# pragma warning(disable: 4512) // warning C4512: Assignment operator was implicitly defined as deleted
|
||||||
#elif defined(__ICC) || defined(__INTEL_COMPILER)
|
#elif defined(__ICC) || defined(__INTEL_COMPILER)
|
||||||
|
# pragma warning(push)
|
||||||
# pragma warning(disable:2196) // warning #2196: routine is both "inline" and "noinline"
|
# pragma warning(disable:2196) // warning #2196: routine is both "inline" and "noinline"
|
||||||
#elif defined(__GNUG__) and !defined(__clang__)
|
#elif defined(__GNUG__) and !defined(__clang__)
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
@ -1056,6 +1057,8 @@ NAMESPACE_END(pybind11)
|
|||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
|
#elif defined(__ICC) || defined(__INTEL_COMPILER)
|
||||||
|
# pragma warning(pop)
|
||||||
#elif defined(__GNUG__) and !defined(__clang__)
|
#elif defined(__GNUG__) and !defined(__clang__)
|
||||||
# pragma GCC diagnostic pop
|
# pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user