Skip to content

jsoncpp: force explicit casts for integer to floating point conversio… #7268

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

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

bshastry
Copy link
Contributor

@bshastry bshastry commented Aug 15, 2019

…ns for clang version greater than 9.0

fixes #7264 and should fix oss-fuzz build failure once merged to develop

@bshastry
Copy link
Contributor Author

We don't have a CI yet to test this but I have verified that it works locally with upstream clang (versioned 10.0.0)

@@ -19,7 +19,19 @@ if(EMSCRIPTEN)
# at the moment.
set(JSONCPP_CXX_FLAGS -std=c++17)
else()
set(JSONCPP_CXX_FLAGS ${CMAKE_CXX_FLAGS})
# jsoncpp uses implicit casts for comparing integer and
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like a good feature to activate without condition. That would also reduce the config complexity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated PR

@bshastry bshastry merged commit c89eb84 into develop Aug 15, 2019
@bshastry bshastry deleted the fix-7264 branch August 15, 2019 16:10
resonant-riches added a commit to ChorusOne/azimuth-cli that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Build] jsoncpp 1.8.4 compilation fails with clang-10
2 participants