Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix pragmas
  • Loading branch information
mdboom committed Nov 6, 2023
commit f87df622d9e4d11a8315f171a7dbf13312c895ff
3 changes: 2 additions & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ extern const struct _PyCode_DEF(8) _Py_InitCleanup;
* so consume 3 units of C stack */
#define PY_EVAL_C_STACK_UNITS 2

#pragma optimize(off)
#pragma optimize("", off)
PyObject* _Py_HOT_FUNCTION
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
Expand Down Expand Up @@ -1082,6 +1082,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
#elif defined(_MSC_VER) /* MS_WINDOWS */
# pragma warning(pop)
#endif
#pragma optimize("", on)

static void
format_missing(PyThreadState *tstate, const char *kind,
Expand Down