quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Dumpleton (JIRA)" <j...@apache.org>
Subject [jira] Created: (MODPYTHON-245) Incorrect prototype for exported optional function.
Date Mon, 28 Jan 2008 22:53:34 GMT
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
            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.

View raw message