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

Skip to content

Commit 3fd1399

Browse files
committed
Disabled some unused functions to silence compiler warnings
1 parent 8782408 commit 3fd1399

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Objects/unicodeobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8347,6 +8347,7 @@ doubletounicode(Py_UNICODE *buffer, size_t len, const char *format, double x)
83478347
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
83488348
}
83498349

8350+
#if 0
83508351
static int
83518352
longtounicode(Py_UNICODE *buffer, size_t len, const char *format, long x)
83528353
{
@@ -8356,6 +8357,7 @@ longtounicode(Py_UNICODE *buffer, size_t len, const char *format, long x)
83568357
result = strtounicode(buffer, (char *)buffer);
83578358
return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
83588359
}
8360+
#endif
83598361

83608362
/* XXX To save some code duplication, formatfloat/long/int could have been
83618363
shared with stringobject.c, converting from 8-bit to Unicode after the
@@ -8426,6 +8428,7 @@ formatlong(PyObject *val, int flags, int prec, int type)
84268428
return result;
84278429
}
84288430

8431+
#if 0
84298432
static int
84308433
formatint(Py_UNICODE *buf,
84318434
size_t buflen,
@@ -8501,6 +8504,7 @@ formatint(Py_UNICODE *buf,
85018504
else
85028505
return longtounicode(buf, buflen, fmt, x);
85038506
}
8507+
#endif
85048508

85058509
static int
85068510
formatchar(Py_UNICODE *buf,

0 commit comments

Comments
 (0)