Skip to content

Commit d511ca6

Browse files
committed
Avoid "empty structure" compile error.
1 parent f447ce4 commit d511ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/typeobject.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3795,8 +3795,8 @@ apply_slot_updates(slot_update_t *updates)
37953795

37963796
#else
37973797

3798-
// not used, slot updates are applied immediately
3799-
typedef struct {} slot_update_t;
3798+
// dummy definition, this parameter is only NULL in the default build
3799+
typedef void slot_update_t;
38003800

38013801
#endif
38023802

0 commit comments

Comments
 (0)