diff -r 8c355edc5b1d Modules/timemodule.c --- a/Modules/timemodule.c Sat Dec 17 08:02:20 2011 -0500 +++ b/Modules/timemodule.c Sat Dec 17 20:20:55 2011 +0100 @@ -545,6 +545,8 @@ PyErr_SetString(PyExc_ValueError, "Invalid format string"); break; } +#else + (void)err; #endif } #ifdef HAVE_WCSFTIME diff -r 8c355edc5b1d Objects/unicodeobject.c --- a/Objects/unicodeobject.c Sat Dec 17 08:02:20 2011 -0500 +++ b/Objects/unicodeobject.c Sat Dec 17 20:20:55 2011 +0100 @@ -4832,7 +4832,7 @@ if (maxchar < 128 && size == unicode_size) { if (consumed) *consumed = size; - return unicode_fromascii(s, size); + return unicode_fromascii((const unsigned char *)s, size); } unicode = PyUnicode_New(unicode_size, maxchar);