Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13819

[C++] Build fails with "'subseconds' may be used uninitialized in this function"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++

    Description

      Started happening after updating my Conda environment.

      In file included from /home/lidavidm/Code/upstream/arrow-13812/cpp/src/arrow/util/value_parsing.cc:18:
      /home/lidavidm/Code/upstream/arrow-13812/cpp/src/arrow/util/value_parsing.h: In member function 'virtual bool arrow::internal::{anonymous}::ISO8601Parser::operator()(const char*, size_t, arrow::TimeUnit::type, int64_t*) const':
      /home/lidavidm/Code/upstream/arrow-13812/cpp/src/arrow/util/value_parsing.h:532:29: error: 'subseconds' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        532 |           *out = subseconds * 10;
            |                  ~~~~~~~~~~~^~~~
      /home/lidavidm/Code/upstream/arrow-13812/cpp/src/arrow/util/value_parsing.h:527:14: note: 'subseconds' was declared here
        527 |     uint32_t subseconds;
            |              ^~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m