Skip to content

Conversation

greenrobot
Copy link
Contributor

@greenrobot greenrobot commented Aug 10, 2023

Enables to compile flatbuffer_builder.h with strict settings -Wconversion -Wsign-conversion. Also, add asserts to verify the conversions.

Disclaimer why this matters: (very) strict compiler settings are often required in mission critical projects. The changes here address flatbuffer_builder.h, which provides essential functionality.

@github-actions github-actions bot added the c++ label Aug 10, 2023
@greenrobot
Copy link
Contributor Author

44 successful, 3 failing, and 2 skipped checks

Note that those 3 failing tests are unrelated to this PR - CI is failing in general for those at this moment.

Enables to compile flatbuffer_builder.h with strict settings -Wconversion -Wsign-conversion.
Also, add asserts to verify the conversions.
@greenrobot greenrobot force-pushed the 8062-cpp-strict-conversion-fixes branch from 9f66ad2 to 986b9fc Compare September 29, 2023 12:13
@dbaileychess dbaileychess merged commit 56e2bc3 into google:master Sep 29, 2023
@dbaileychess
Copy link
Collaborator

Sorry for the delay, I was out on paternity leave.

jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…oogle#8065)

Enables to compile flatbuffer_builder.h with strict settings -Wconversion -Wsign-conversion.
Also, add asserts to verify the conversions.
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…oogle#8065)

Enables to compile flatbuffer_builder.h with strict settings -Wconversion -Wsign-conversion.
Also, add asserts to verify the conversions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants