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

[C++] iso_calendar may be uninitialized

    XMLWordPrintableJSON

Details

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

    Description

      /arrow/cpp/src/arrow/scalar.h:137:64: warning: ‘*((void*)& iso_calendar +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        137 |       : PrimitiveScalarBase(std::move(type), true), value(value) {}
            |                                                                ^
      In file included from /tmp/RtmpoS4YCn/file8773f4430f/src/arrow/CMakeFiles/arrow_objlib.dir/Unity/unity_17_cxx.cxx:7:
      /arrow/cpp/src/arrow/compute/kernels/scalar_temporal.cc:697:30: note: ‘*((void*)& iso_calendar +8)’ was declared here
        697 |       std::array<int64_t, 3> iso_calendar;
      

      fyi rokm

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              npr Neal Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h
                  1h