[ 
https://issues.apache.org/jira/browse/ARROW-14007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated ARROW-14007:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {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)

Reply via email to