You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2026/07/05 04:53:00 UTC
[jira] [Updated] (ORC-2159) [C++] C++ build fails with newer protobuf due to ignored nodiscard return values
[ https://issues.apache.org/jira/browse/ORC-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated ORC-2159:
-------------------------------
Fix Version/s: 3.0.0
(was: 2.3.1)
> [C++] C++ build fails with newer protobuf due to ignored nodiscard return values
> --------------------------------------------------------------------------------
>
> Key: ORC-2159
> URL: https://issues.apache.org/jira/browse/ORC-2159
> Project: ORC
> Issue Type: Improvement
> Components: C++
> Reporter: Gang Wu
> Assignee: Gang Wu
> Priority: Major
> Fix For: 3.0.0
>
>
> The C++ build fails with newer protobuf / compiler headers because several boolean-returning APIs are marked nodiscard and their return values are ignored. Since the C++ build treats warnings as errors, these become hard build failures.
> The build fails with errors like:
> ColumnReader.cc:438:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
> inputStream_->Skip(static_cast<int>(step));
> ColumnReader.cc:684:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
> blobStream_->Skip(static_cast<int>(step));
> ColumnWriter.cc:215:5: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
> rowIndex->SerializeToZeroCopyStream(indexStream.get());
--
This message was sent by Atlassian Jira
(v8.20.10#820010)