From 4201b9e42038c24a5d5f0ae856eba1c5afab90c3 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sun, 9 Jul 2000 04:34:13 +0000 Subject: [PATCH] type_error(): Added "const" to signature to eliminate warning with -Wall. --- Objects/abstract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index c13cb72d66f..5717815834a 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. /* Shorthands to return certain errors */ static PyObject * -type_error(char *msg) +type_error(const char *msg) { PyErr_SetString(PyExc_TypeError, msg); return NULL;