]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Under OS X, history_get from readline returns a const char *, but the local
authorBrett Cannon <bcannon@gmail.com>
Sun, 22 Aug 2010 20:36:25 +0000 (20:36 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 22 Aug 2010 20:36:25 +0000 (20:36 +0000)
commit2525dc8fb6ce87502b09bbf9965065ab296d9b07
tree0d9f2119c159f9fdb1afa7c3feaa3da6582b73e3
parent6a74da3cdb18c11805d599d51f0507ce7655f8f8
Under OS X, history_get from readline returns a const char *, but the local
variable the return value is assigned to is char *. Since the assigned-to
variable is never changed, simply make that a const char * and cast all calls
to get_history to const char * to silence the compiler warning (found with
LLVM).
Modules/readline.c