Skip to content

Commit e8a70cf

Browse files
committed
Revising #ifdef to be more conservative.
1 parent 8d08800 commit e8a70cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//
1414
// THE `push` HERE NEED TO BE KEPT IN SYNC WITH THE CORRESPONDING `pop` AT THE BOTTOM OF THIS FILE.
1515
//
16-
#if defined(_MSC_VER)
16+
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1717
# pragma warning(push)
1818
# pragma warning(disable: 4100) // warning C4100: Unreferenced formal parameter
1919
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
@@ -2378,7 +2378,7 @@ PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
23782378
//
23792379
// THE `pop` HERE NEED TO BE KEPT IN SYNC WITH THE CORRESPONDING `push` AT THE TOP OF THIS FILE.
23802380
//
2381-
#if defined(_MSC_VER)
2381+
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
23822382
# pragma warning(pop)
23832383
#elif defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
23842384
# pragma GCC diagnostic pop

0 commit comments

Comments
 (0)