Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-38

JCC build error under recents versions of clang.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      macOS

      Description

      jcc3/sources/JArray.cpp:315:66: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int')
              PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
      jcc3/sources/JArray.cpp:330:64: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int')
              PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
      

      Comparisons between NULL and integers have been elevated from a warning to an error in recent versions of clang. And presumably the error handling wasn't working anyway.

        Activity

        Hide
        vajda Andi Vajda added a comment -

        This is fixed in rev 1812455

        Show
        vajda Andi Vajda added a comment - This is fixed in rev 1812455

          People

          • Assignee:
            Unassigned
            Reporter:
            coady A. Coady
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development