mirror of
https://github.com/python/cpython.git
synced 2025-12-08 18:32:16 +00:00
type_error(): Added "const" to signature to eliminate warning with -Wall.
This commit is contained in:
parent
3be9a8a5ed
commit
4201b9e420
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
/* Shorthands to return certain errors */
|
/* Shorthands to return certain errors */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
type_error(char *msg)
|
type_error(const char *msg)
|
||||||
{
|
{
|
||||||
PyErr_SetString(PyExc_TypeError, msg);
|
PyErr_SetString(PyExc_TypeError, msg);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue