Skip to content

Commit c951e0a

Browse files
committed
Removing pragma for 4127 (to see what is still broken with the latest code).
1 parent e2573dc commit c951e0a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010

1111
#pragma once
1212

13-
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
14-
# pragma warning(push)
15-
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
16-
#elif defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
13+
#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
1714
# pragma GCC diagnostic push
1815
# pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
1916
# pragma GCC diagnostic ignored "-Wattributes"
@@ -2388,8 +2385,6 @@ PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
23882385
# pragma GCC diagnostic pop // -Wnoexcept-type
23892386
#endif
23902387

2391-
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
2392-
# pragma warning(pop)
2393-
#elif defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
2388+
#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
23942389
# pragma GCC diagnostic pop
23952390
#endif

0 commit comments

Comments
 (0)