Skip to content

Commit f89d3bc

Browse files
committed
silence warning in pycore_ceval.h
1 parent ec46a55 commit f89d3bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Include/internal/pycore_ceval.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ static uintptr_t return_pointer_as_int(char* p) {
199199
}
200200
#endif
201201

202+
#ifdef _MSC_VER
203+
#pragma warning(push)
204+
#pragma warning(disable:4172)
205+
#endif
202206
static inline uintptr_t
203207
_Py_get_machine_stack_pointer(void) {
204208
#if _Py__has_builtin(__builtin_frame_address)
@@ -209,6 +213,9 @@ _Py_get_machine_stack_pointer(void) {
209213
return return_pointer_as_int(&here);
210214
#endif
211215
}
216+
#ifdef _MSC_VER
217+
#pragma warning(pop)
218+
#endif
212219

213220
static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
214221
uintptr_t here_addr = _Py_get_machine_stack_pointer();

0 commit comments

Comments
 (0)