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

Spurious compiler warnings (which get treated as errors in some cases)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.2
    • Component/s: Code Generator
    • Labels:
      None

      Description

      a.out_6.cpp: In member function ‘virtual bool cAc3179::matches(const void*, const void*)’:
      a.out_6.cpp:13334:115: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
      if (!(*((short *)(left + 2U)) > *((short *)(right + 2U)) || *((short *)(left + 2U)) == *((short *)(right + 2U)) && *((unsigned short *)(left + 0U)) <= *((unsigned short *)(right + 0U)))) {

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: