js8544 opened a new pull request, #38433:
URL: https://github.com/apache/arrow/pull/38433

   Some compilers generate a maybe-uninitialized warning when compiling 
scalar_round.cc
   ```
   /home/jinshang/arrow/cpp/src/arrow/util/logging.h: In function 'void 
arrow::compute::internal::RegisterScalarRoundArithmetic(arrow::compute::FunctionRegistry*)':
   /home/jinshang/arrow/cpp/src/arrow/util/logging.h:59:34: warning: 'exec' may 
be used uninitialized [-Wmaybe-uninitialized]
      59 | #define ARROW_IGNORE_EXPR(expr) ((void)(expr))
         |                                  ^
   /home/jinshang/arrow/cpp/src/arrow/compute/kernels/scalar_round.cc:1262:23: 
note: 'exec' was declared here
    1262 |       ArrayKernelExec exec;
         |                       ^~~~
   /home/jinshang/arrow/cpp/src/arrow/util/logging.h:59:34: warning: 'exec' may 
be used uninitialized [-Wmaybe-uninitialized]
      59 | #define ARROW_IGNORE_EXPR(expr) ((void)(expr))
         |                                  ^
   /home/jinshang/arrow/cpp/src/arrow/compute/kernels/scalar_round.cc:1283:23: 
note: 'exec' was declared here
    1283 |       ArrayKernelExec exec;
         |                       ^~~~
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to