You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "adamreeve (via GitHub)" <gi...@apache.org> on 2026/09/10 08:43:08 UTC

[I] [C++] "may be used uninitialized" build error with gcc 16 in acero test utils [arrow]

adamreeve opened a new issue, #51278:
URL: https://github.com/apache/arrow/issues/51278

   I get the following error building Arrow C++ with gcc 16.2.1 on x86_64 Fedora Linux 44, using the `ninja-debug-python` CMake preset:
   
   ```
   /home/adam/dev/arrow/cpp/src/arrow/acero/test_util_internal.cc: In constructor ‘arrow::acero::{anonymous}::DummyNode::DummyNode(arrow::acero::ExecPlan*, arrow::acero::ExecNode::NodeVector, bool, arrow::acero::StartProducingFunc, arrow::acero::StopProducingFunc)’:
   /home/adam/dev/arrow/cpp/src/arrow/acero/test_util_internal.cc:79:57: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
      79 |       : ExecNode(plan, std::move(inputs), {}, (is_sink) ? nullptr : dummy_schema()),
         |                                               ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
   /home/adam/dev/arrow/cpp/src/arrow/acero/test_util_internal.cc:124:27: note: by argument 1 of type ‘const arrow::acero::{anonymous}::DummyNode*’ to ‘std::shared_ptr<arrow::Schema> arrow::acero::{anonymous}::DummyNode::dummy_schema() const’ declared here
     124 |   std::shared_ptr<Schema> dummy_schema() const {
         |                           ^~~~~~~~~~~~
   cc1plus: all warnings being treated as errors
   ```
   
   `dummy_schema()` is a method of `DummyNode` but the `DummyNode` instance is not yet initialized when this is called.
   


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] "may be used uninitialized" build error with gcc 16 in acero test utils [arrow]

Posted by "adamreeve (via GitHub)" <gi...@apache.org>.
adamreeve closed issue #51278: [C++] "may be used uninitialized" build error with gcc 16 in acero test utils
URL: https://github.com/apache/arrow/issues/51278


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] "may be used uninitialized" build error with gcc 16 in acero test utils [arrow]

Posted by "adamreeve (via GitHub)" <gi...@apache.org>.
adamreeve commented on issue #51278:
URL: https://github.com/apache/arrow/issues/51278#issuecomment-5617014606

   Issue resolved by pull request 51279
   https://github.com/apache/arrow/pull/51279


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org