]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
timemodule.c: Cast PyUnicode_AsUTF8() to char* (#1294)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Apr 2017 11:51:48 +0000 (13:51 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 11:51:48 +0000 (13:51 +0200)
commit6e676954de7c4f3f06dd5b56842c9a2c931a1cab
tree35fed558ff7509c31202f875deaca3c19c1f0495
parent87c07fe9d908d0a2143fcc8369255c6ff3241503
timemodule.c: Cast PyUnicode_AsUTF8() to char* (#1294)

bpo-28769 changed PyUnicode_AsUTF8() return type from const char* to
char* in Python 3.7, but tm_zone field type of the tm structure is
char* on FreeBSD.

Cast PyUnicode_AsUTF8() to char* in gettmarg() to fix the warning:

    Modules/timemodule.c:443:20: warning: assigning to 'char *'
    from 'const char *' discards qualifiers
Modules/timemodule.c