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

Uninitialized variable warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 7.2.6
    • Fix Version/s: 7.2.8
    • Component/s: DFS
    • Labels:
      None
    • Environment:
      Ubuntu 19.04

      Description

      [ 37%] Building CXX object esp/clients/wsdfuaccess/CMakeFiles/wsdfuaccess.dir/wsdfuaccess.cpp.o
      /home/hpcc-dev/HPCC-Platform/esp/clients/wsdfuaccess/wsdfuaccess.cpp: In function 'dafsstream::IDFUFileAccess* wsdfuaccess::createDFUFile(const char*, const char*, dafsstream::DFUFileType, const char*, const char*, unsigned int, bool, const char*, const char*)':
      /home/hpcc-dev/HPCC-Platform/esp/clients/wsdfuaccess/wsdfuaccess.cpp:219:20: warning: 'serviceType' may be used uninitialized in this function [-Wmaybe-uninitialized]
      dfuReq->setType(serviceType);
      ~~~~~~~~~~~~~~^~~~~~~~~~~~
      /home/hpcc-dev/HPCC-Platform/esp/clients/wsdfuaccess/wsdfuaccess.cpp:209:18: note: 'serviceType' was declared here
      CDFUFileType serviceType;
      ^~~~~~~~~~~

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: