Skip to content

Commit f1bb818

Browse files
authored
Fix some compiler warnings about unused vars (#20370)
We can't really set `-Werror` in `librt` yet, but this makes the `librt` build almost fully clean.
1 parent 458cfe1 commit f1bb818

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mypyc/lib-rt/getargsfast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int
119119
parser_init(CPyArg_Parser *parser)
120120
{
121121
const char * const *keywords;
122-
const char *format, *msg;
122+
const char *format;
123123
int i, len, min, max, nkw;
124124
PyObject *kwtuple;
125125

mypyc/lib-rt/librt_strings.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ static bool
3737
_grow_buffer(BytesWriterObject *data, Py_ssize_t n) {
3838
Py_ssize_t target = data->len + n;
3939
Py_ssize_t size = data->capacity;
40-
Py_ssize_t old_size = size;
4140
do {
4241
size *= 2;
4342
} while (target >= size);

0 commit comments

Comments
 (0)