Skip to content

Feature/fix warnings#4

Open
vonericsen wants to merge 17 commits intodevelopfrom
feature/fix_warnings
Open

Feature/fix warnings#4
vonericsen wants to merge 17 commits intodevelopfrom
feature/fix_warnings

Conversation

@vonericsen
Copy link
Contributor

Fixing all the sign conversion, undef, etc warnings in libjson.

There were a lot of warnings coming from this code in modern compilers.
All changes are C++11 compatible and resolve all warnings in GCC 15.2.1

I also added the test suite into meson as something that can be run.
While it runs, meson does not understand the output correctly so running meson test produces an incorrect result saying everything passes. The old test code writes it's own HTML style output file which you need to open to check the results.

The meson.build was also updated to be more proper meson rather than cheap and quick makefile conversion.
So it sets all compiler flags/options for each built type (release/debug/etc) the way the makefile would, but according to meson's rules/options.
I also upped the warning level to 2 and added in the hardening related options from our other opensea-libraries.

I did not get a chance to try upgrading that, so that should be a feature for the next person 😄

Fixing all the sign conversion, undef, etc warnings in libjson.

Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
@Swiss3003
Copy link
Contributor

still seeing lots of warnings with all the meson builds. Can you reopen the feature branch, I have some more fixes to add. But the feature branch lock to where I can't push some fixes

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.

2 participants