Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-245

Incorrect prototype for exported optional function.

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.x
    • Component/s: core
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        grahamd Graham Dumpleton added a comment -

        Fixed in revision 677149 of trunk.

        Show
        grahamd Graham Dumpleton added a comment - Fixed in revision 677149 of trunk.

          People

          • Assignee:
            grahamd Graham Dumpleton
            Reporter:
            grahamd Graham Dumpleton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development