You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/09/15 19:01:00 UTC

[jira] [Created] (ARROW-14007) [C++] Fix compiler warnings in decimal promotion machinery

David Li created ARROW-14007:
--------------------------------

             Summary: [C++] Fix compiler warnings in decimal promotion machinery
                 Key: ARROW-14007
                 URL: https://issues.apache.org/jira/browse/ARROW-14007
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: David Li
            Assignee: David Li


{noformat}
/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;
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)