Skip to content

Commit e5726aa

Browse files
EthanSteinbergrwgk
authored andcommitted
Minor formatting
1 parent 2c9589c commit e5726aa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

include/pybind11/detail/common.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,21 +1183,18 @@ constexpr
11831183

11841184
#if defined(_MSC_VER) // All versions (as of July 2021).
11851185

1186-
# define PYBIND11_BEGIN_SILENCE_MSVC_C4127 PYBIND11_PRAGMA(warning(disable : 4127))
1187-
11881186
// warning C4127: Conditional expression is constant
11891187
constexpr inline bool silence_msvc_c4127(bool cond) { return cond; }
11901188

11911189
# define PYBIND11_SILENCE_MSVC_C4127(...) ::pybind11::detail::silence_msvc_c4127(__VA_ARGS__)
11921190

11931191
#else
11941192
# define PYBIND11_SILENCE_MSVC_C4127(...) __VA_ARGS__
1195-
# define PYBIND11_BEGIN_SILENCE_MSVC_C4127
11961193
#endif
11971194

11981195
#if defined(__clang__) \
1199-
&& (defined(__apple_build_version__) /* AppleClang 13.0.0.13000029 was the only data \
1200-
point available. */ \
1196+
&& (defined(__apple_build_version__) /* AppleClang 13.0.0.13000029 was the only data point \
1197+
available. */ \
12011198
|| (__clang_major__ >= 7 \
12021199
&& __clang_major__ <= 12) /* Clang 3, 5, 13, 14, 15 do not generate the warning. */ \
12031200
)

0 commit comments

Comments
 (0)