Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14344

Fix gcc warning in daformat.ipp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: DFU Server
    • Labels:
      None

      Description

      The following should be fixed:

      /home/gavin/dev/hpcc/dali/ft/daftformat.ipp: In member function ‘virtual void CJsonInputPartitioner::findSplitPoint(offset_t, PartitionCursor&)’:
      /home/gavin/dev/hpcc/dali/ft/daftformat.ipp:547:48: warning: ‘prevRowEnd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      cursor.trimLength = json->rowStart - prevRowEnd;
      ^

      I didn't fix it myself, because it looked like the return value from findRowEnd() should possibly be tested.

        Attachments

          Activity

            People

            • Assignee:
              afishbeck Anthony Fishbeck
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: