mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix some warnings produced by different compilers. (#5593)
This commit is contained in:
parent
5bb0005f9f
commit
bfe4fd5f2e
6 changed files with 19 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#define CONTEXT_FREELIST_MAXLEN 255
|
||||
static PyContext *ctx_freelist = NULL;
|
||||
static Py_ssize_t ctx_freelist_len = 0;
|
||||
static int ctx_freelist_len = 0;
|
||||
|
||||
|
||||
#include "clinic/context.c.h"
|
||||
|
@ -1177,7 +1177,7 @@ get_token_missing(void)
|
|||
int
|
||||
PyContext_ClearFreeList(void)
|
||||
{
|
||||
Py_ssize_t size = ctx_freelist_len;
|
||||
int size = ctx_freelist_len;
|
||||
while (ctx_freelist_len) {
|
||||
PyContext *ctx = ctx_freelist;
|
||||
ctx_freelist = (PyContext *)ctx->ctx_weakreflist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue