[
https://issues.apache.org/jira/browse/AVRO-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17685038#comment-17685038
]
ASF subversion and git services commented on AVRO-3712:
-------------------------------------------------------
Commit 52d670f72dbb35e06755bd288ab6eca84a3920a5 in avro's branch
refs/heads/master from jmccl
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=52d670f72 ]
AVRO-3712: Fix build by initializing union (#2079)
Co-authored-by: jmccl <[email protected]>
> C++ Build Failure on Manjaro
> -----------------------------
>
> Key: AVRO-3712
> URL: https://issues.apache.org/jira/browse/AVRO-3712
> Project: Apache Avro
> Issue Type: Bug
> Environment: Manjaro
> Reporter: John McClean
> Assignee: John McClean
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {quote}
> In member function ‘void avro::ReaderImpl<ValidatorType>::readValue(double&)
> [with ValidatorType = avro::NullValidator]’,
> inlined from ‘double avro::Parser<Reader>::readDouble() [with Reader =
> avro::ReaderImpl<avro::NullValidator>]’ at
> /home/john/third-party/avro/lang/c++/api/Parser.hh:75:26,
> inlined from ‘void TestSchema::readArray(Parser&) [with Parser =
> avro::Parser<avro::ReaderImpl<avro::NullValidator> >]’ at
> /home/john/third-party/avro/lang/c++/test/unittest.cc:324:33,
> inlined from ‘void TestSchema::readData(Parser&) [with Parser =
> avro::Parser<avro::ReaderImpl<avro::NullValidator> >]’ at
> /home/john/third-party/avro/lang/c++/test/unittest.cc:366:18,
> inlined from ‘void TestSchema::readRawData()’ at
> /home/john/third-party/avro/lang/c++/test/unittest.cc:404:17:
> /home/john/third-party/avro/lang/c++/api/Reader.hh:89:17: error:
> ‘v.avro::ReaderImpl<avro::NullValidator>::readValue(double&)::<unnamed
> union>::d’ may be used uninitialized [-Werror=maybe-uninitialized]
> 89 | val = v.d;
> | ~~^
> {quote}
> I'll put in a PR.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)