Skip to content

Commit d965acf

Browse files
committed
Windows build
1 parent 41c6bec commit d965acf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Python/immutability.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
#define TRACE_MERMAID_END()
8585
#endif
8686

87-
#ifdef SIZEOF_VOID_P > 4
87+
#if SIZEOF_VOID_P > 4
8888
#define IMMUTABLE_FLAG_FIELD(op) (op->ob_flags)
8989
#else
9090
#define IMMUTABLE_FLAG_FIELD(op) (op->ob_refcnt)
@@ -524,8 +524,9 @@ union_scc(PyObject* a, PyObject* b, struct FreezeState *state)
524524
return true;
525525
}
526526

527-
PyObject* get_next(PyObject* obj, struct FreezeState *)
527+
PyObject* get_next(PyObject* obj, struct FreezeState *freeze_state)
528528
{
529+
(void)freeze_state;
529530
PyObject* next = scc_next(obj);
530531
return next;
531532
}
@@ -991,8 +992,10 @@ void add_internal_reference(PyObject* obj, struct FreezeState *state)
991992
Function for use in _Py_hashtable_foreach.
992993
Marks the key as immutable/frozen.
993994
*/
994-
int mark_frozen(_Py_hashtable_t*, const void* key, const void*, void*)
995+
int mark_frozen(_Py_hashtable_t*, const void* key, const void* value, void* state)
995996
{
997+
(void)value;
998+
(void)state;
996999
// Mark as frozen, this can only reach immutable objects so safe.
9971000
_Py_SetImmutable((PyObject*)key);
9981001
return 0;

0 commit comments

Comments
 (0)