You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Graham Dumpleton (JIRA)" <ji...@apache.org> on 2008/07/16 06:13:31 UTC

[jira] Updated: (MODPYTHON-245) Incorrect prototype for exported optional function.

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

Graham Dumpleton updated MODPYTHON-245:
---------------------------------------

    Fix Version/s: 3.3.x

Fixed in revision 677149 of trunk.

> 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
>             Fix For: 3.3.x
>
>
> 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.