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".
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c
index 18a5bd0..f8f4317 100644
--- a/Python/dynload_aix.c
+++ b/Python/dynload_aix.c
@@ -221,7 +221,7 @@
if (!staticmodlistptr)
if (aix_getoldmodules(&staticmodlistptr) == -1)
return NULL;
- p = (dl_funcptr) aix_load(pathname, L_NOAUTODEFER, 0);
+ p = (dl_funcptr) aix_load((char *)pathname, L_NOAUTODEFER, 0);
if (p == NULL) {
aix_loaderror(pathname);
return NULL;