Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] g++ (GCC) 14.2.1 20240910 fails to compile due to -Werror=conversion #3166

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

hexagonhill
Copy link
Contributor

Example of changed code to remove error.
int32_t checksum = crc();
to
auto checksum = crc();

error: conversion from ‘boost::crc_optimal<32, 79764919, 4294967295, 4294967295, true, true>::value_type’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Werror=conversion]

Further errors not related to avro cmake but using a meson build port was missing header in some files such that std::find and std::find_if could not be found. Thought to include them in PR.

These changes passed ./build.sh test

Thanks for the code!
Sorry for the informal request a bit busy but wanted to give back.

…95, 4294967295, true, true>::value_type’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Werror=conversion]
…cxx11::basic_string<char> >::const_iterator, std::vector<std::__cxx11::basic_string<char> >::const_iterator, const std::string&)’
@github-actions github-actions bot added the C++ Pull Requests for C++ binding label Sep 17, 2024
@@ -0,0 +1,150 @@
project('avro-cpp', 'cpp', version: '1.0',

This comment was marked as resolved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If adding said tooling isn't trivial, or maybe even if it is, splitting into a second PR to make it easier to merge isn't a bad idea

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. I removed it. I didn't know PR would follow so to speak further commit.

@martin-g martin-g merged commit 2d3029d into apache:main Sep 23, 2024
5 checks passed
@martin-g
Copy link
Member

Thank you, @hexagonhill !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Pull Requests for C++ binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants