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

Incorrect prototype for exported optional function.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.3.1
    • 3.3.x
    • core
    • 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.

      Attachments

        Activity

          People

            grahamd Graham Phillip Dumpleton
            grahamd Graham Phillip Dumpleton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: