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

[C++] Fix compiler warnings in decimal promotion machinery

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++

    Description

      /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/result.h:452:30: warning: 'left_scaleup' may be used uninitialized in this function [-Wmaybe-uninitialized]
        452 |   auto&& result_name = (rexpr);                                                          \
            |                              ^
      /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/compute/kernels/codegen_internal.cc:388:11: note: 'left_scaleup' was declared here
        388 |   int32_t left_scaleup, right_scaleup;
            |           ^~~~~~~~~~~~
      In file included from /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/array/data.h:27,
                       from /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/array/array_base.h:26,
                       from /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/array/builder_binary.h:30,
                       from /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/compute/kernels/codegen_internal.h:27,
                       from /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/compute/kernels/codegen_internal.cc:18:
      /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/result.h:452:30: warning: 'right_scaleup' may be used uninitialized in this function [-Wmaybe-uninitialized]
        452 |   auto&& result_name = (rexpr);                                                          \
            |                              ^
      /home/lidavidm/Code/upstream/arrow-12671/cpp/src/arrow/compute/kernels/codegen_internal.cc:388:25: note: 'right_scaleup' was declared here
        388 |   int32_t left_scaleup, right_scaleup;
      

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              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 - 20m
                  20m