Skip to content

Commit 96b5ee8

Browse files
committed
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".
1 parent 5731575 commit 96b5ee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Python/dynload_aix.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname,
221221
if (!staticmodlistptr)
222222
if (aix_getoldmodules(&staticmodlistptr) == -1)
223223
return NULL;
224-
p = (dl_funcptr) aix_load(pathname, L_NOAUTODEFER, 0);
224+
p = (dl_funcptr) aix_load((char *)pathname, L_NOAUTODEFER, 0);
225225
if (p == NULL) {
226226
aix_loaderror(pathname);
227227
return NULL;

0 commit comments

Comments
 (0)