mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Vladimir Marangozov:
Here's a patch that avoids a warning caused by the "const char* pathname" declaration for _PyImport_GetDynLoadFunc (in dynload_aix). The "aix_load" function's 1st arg is prototyped as "char *pathname".
This commit is contained in:
parent
5731575449
commit
96b5ee88ee
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname,
|
||||||
if (!staticmodlistptr)
|
if (!staticmodlistptr)
|
||||||
if (aix_getoldmodules(&staticmodlistptr) == -1)
|
if (aix_getoldmodules(&staticmodlistptr) == -1)
|
||||||
return NULL;
|
return NULL;
|
||||||
p = (dl_funcptr) aix_load(pathname, L_NOAUTODEFER, 0);
|
p = (dl_funcptr) aix_load((char *)pathname, L_NOAUTODEFER, 0);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
aix_loaderror(pathname);
|
aix_loaderror(pathname);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue