[ 
https://issues.apache.org/jira/browse/MODPYTHON-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Graham Dumpleton reassigned MODPYTHON-245:
------------------------------------------

    Assignee: Graham Dumpleton

> Incorrect prototype for exported optional function.
> ---------------------------------------------------
>
>                 Key: MODPYTHON-245
>                 URL: https://issues.apache.org/jira/browse/MODPYTHON-245
>             Project: mod_python
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.3.1
>            Reporter: Graham Dumpleton
>            Assignee: Graham Dumpleton
>            Priority: Minor
>
> The optional function prototype in src/include/mod_python.h.in is listed as:
> APR_DECLARE_OPTIONAL_FN(void *, mp_release_interpreter, ());
> it should be:
> APR_DECLARE_OPTIONAL_FN(void, mp_release_interpreter, ());
> Code will not compile on some very pedantic compilers.
> 826    APR_REGISTER_OPTIONAL_FN(mp_release_interpreter);
> 826    do { apr_OFN_mp_release_interpreter_t *apu__opt = 
> mp_release_interpreter; 
> apr_dynamic_fn_register("mp_release_interpreter",(apr_opt_fn_t *)apu__opt); } 
> while (0);
> Initialization between types "void*(*)()" and "void(*)(void)" is not allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to