mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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).
This commit is contained in:
parent
185a29b08f
commit
b59ab42487
2 changed files with 1 additions and 2 deletions
|
@ -918,7 +918,7 @@ This function is also available as \"hexlify()\".";
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
to_int(char c)
|
to_int(int c)
|
||||||
{
|
{
|
||||||
if (isdigit(c))
|
if (isdigit(c))
|
||||||
return c - '0';
|
return c - '0';
|
||||||
|
|
|
@ -305,7 +305,6 @@ com_error(struct compiling *c, PyObject *exc, char *msg)
|
||||||
{
|
{
|
||||||
size_t n = strlen(msg);
|
size_t n = strlen(msg);
|
||||||
PyObject *v, *tb, *tmp;
|
PyObject *v, *tb, *tmp;
|
||||||
char *s;
|
|
||||||
c->c_errors++;
|
c->c_errors++;
|
||||||
if (c->c_lineno <= 1) {
|
if (c->c_lineno <= 1) {
|
||||||
/* Unknown line number or single interactive command */
|
/* Unknown line number or single interactive command */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue