From 59ef1894c28ade127f7a4450efcdf0066e0a9996 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 17 Sep 2024 16:17:36 +1000 Subject: [PATCH 1/3] =?UTF-8?q?Fix=20error:=20conversion=20from=20?= =?UTF-8?q?=E2=80=98boost::crc=5Foptimal<32,=2079764919,=204294967295,=204?= =?UTF-8?q?294967295,=20true,=20true>::value=5Ftype=E2=80=99=20{aka=20?= =?UTF-8?q?=E2=80=98long=20unsigned=20int=E2=80=99}=20to=20=E2=80=98uint32?= =?UTF-8?q?=5Ft=E2=80=99=20{aka=20=E2=80=98unsigned=20int=E2=80=99}=20may?= =?UTF-8?q?=20change=20value=20[-Werror=3Dconversion]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/c++/impl/DataFile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/c++/impl/DataFile.cc b/lang/c++/impl/DataFile.cc index 66281ae9820..8fb4a1abaa7 100644 --- a/lang/c++/impl/DataFile.cc +++ b/lang/c++/impl/DataFile.cc @@ -183,7 +183,7 @@ void DataFileWriterBase::sync() { crc.process_bytes(reinterpret_cast(temp.data()), temp.size()); // For Snappy, add the CRC32 checksum - int32_t checksum = crc(); + auto checksum = crc(); // Now compress size_t compressed_size = snappy::Compress( @@ -408,7 +408,7 @@ void DataFileReaderBase::readDataBlock() { "Snappy Compression reported an error when decompressing"); } crc.process_bytes(uncompressed.c_str(), uncompressed.size()); - uint32_t c = crc(); + auto c = crc(); if (checksum != c) { throw Exception( "Checksum did not match for Snappy compression: Expected: {}, computed: {}", From 2643c4a5cb4b4303d0c5f444b70c28a942424da9 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 17 Sep 2024 16:34:54 +1000 Subject: [PATCH 2/3] =?UTF-8?q?Fix=20error:=20=E2=80=98find=5Fif=E2=80=99?= =?UTF-8?q?=20is=20not=20a=20member=20of=20=E2=80=98std=E2=80=99;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/c++/impl/Node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/c++/impl/Node.cc b/lang/c++/impl/Node.cc index bde556bf314..fd9ee9d6dcf 100644 --- a/lang/c++/impl/Node.cc +++ b/lang/c++/impl/Node.cc @@ -16,6 +16,7 @@ * limitations under the License. */ +#include #include #include From 78f8a9404ce8d037ca1199880d288a972a9570e8 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 17 Sep 2024 16:38:53 +1000 Subject: [PATCH 3/3] =?UTF-8?q?Fix=20error:=20no=20matching=20function=20f?= =?UTF-8?q?or=20call=20to=20=E2=80=98find(std::vector=20>::const=5Fiterator,=20std::vector=20>::const=5Fiterator,=20cons?= =?UTF-8?q?t=20std::string&)=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/c++/impl/parsing/Symbol.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/c++/impl/parsing/Symbol.hh b/lang/c++/impl/parsing/Symbol.hh index c8760c34dfa..bbba58e6a0e 100644 --- a/lang/c++/impl/parsing/Symbol.hh +++ b/lang/c++/impl/parsing/Symbol.hh @@ -19,6 +19,7 @@ #ifndef avro_parsing_Symbol_hh__ #define avro_parsing_Symbol_hh__ +#include #include #include #include