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

Clang warning in esdlcmd_monitor.cpp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.4.0
    • Fix Version/s: 6.4.0
    • Component/s: ESDL
    • Labels:
      None

      Description

              if (!typeName.length()>2)
                  return respType;
      

      This will be interpreted as

              if ((!typeName.length())>2)
                  return respType;
      

      where I suspect (and the Clang compiler suspects) what was intended was

              if (!(typeName.length()>2))
                  return respType;
      

      or more succinctly

              if (typeName.length()<=2)
                  return respType;
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: