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

Fix warnings with gcc-12 & improve Makefile #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hhoffstaette
Copy link

@hhoffstaette hhoffstaette commented Aug 29, 2022

Valijson uses picojson as a driver, and we found that building with gcc-12 and optimization (e.g. -O2) causes picojson to emit warnings, see the long story here. The most important one is the uninitialized storage warning, which only appears with optimization and gcc-12.
Since master had a few updates since the last release, the changes in this PR are fewer than for valijson, but they are still necessary to compile cleanly e.g. in projects that use -Werror (which is generally not recommended, but still..).
The Makefile fix allows to pass in CXXFLAGS to build/test with different optimization flags.

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.

1 participant