Commit 8ff6f3e8 authored by Christian Heimes's avatar Christian Heimes

Issue #19296: Silence compiler warning in dbm_open.

Some dbm header files declare the first argument as char * instead of a const char *.
parent 710280b6
......@@ -18,6 +18,8 @@ Core and Builtins
Library
-------
- Issue #19296: Silence compiler warning in dbm_open
- Issue #19839: Fix regression in bz2 module's handling of non-bzip2 data at
EOF, and analogous bug in lzma module.
......
......@@ -66,7 +66,8 @@ newdbmobject(const char *file, int flags, int mode)
if (dp == NULL)
return NULL;
dp->di_size = -1;
if ( (dp->di_dbm = dbm_open(file, flags, mode)) == 0 ) {
/* See issue #19296 */
if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) {
PyErr_SetFromErrno(DbmError);
Py_DECREF(dp);
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment