Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b59ab42

Browse files
committed
Fix new compiler warnings. Unused var in compile.c. Argsize mismatches
in binascii.c (only on platforms with signed chars -- although Py_CHARMASK is documented as returning an int, it only does so on platforms with signed chars).
1 parent 185a29b commit b59ab42

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/binascii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ This function is also available as \"hexlify()\".";
918918

919919

920920
static int
921-
to_int(char c)
921+
to_int(int c)
922922
{
923923
if (isdigit(c))
924924
return c - '0';

Python/compile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ com_error(struct compiling *c, PyObject *exc, char *msg)
305305
{
306306
size_t n = strlen(msg);
307307
PyObject *v, *tb, *tmp;
308-
char *s;
309308
c->c_errors++;
310309
if (c->c_lineno <= 1) {
311310
/* Unknown line number or single interactive command */

0 commit comments

Comments
 (0)