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 warning suppression in the json utility. #2462

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

Xazax-hun
Copy link
Contributor

Properly push and pop the warning configuration to avoid unintentional side effects. The previous solution could overwrite command line options and the inclusion of the header can change what warnings are enabled.

Properly push and pop the warning configuration to avoid unintentional
side effects. The previous solution could overwrite command line options
and the inclusion of the header can change what warnings are enabled.
@quentin
Copy link
Member

quentin commented Dec 23, 2023

Hi, thanks for the fix. Did you find this "problem" by manual inspection or do you run some sort of automatic checker?

Copy link

codecov bot commented Dec 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9ac6b24) 78.18% compared to head (7ea3d58) 78.19%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2462   +/-   ##
=======================================
  Coverage   78.18%   78.19%           
=======================================
  Files         486      486           
  Lines       32422    32422           
=======================================
+ Hits        25349    25352    +3     
+ Misses       7073     7070    -3     
Files Coverage Δ
src/include/souffle/utility/json11.h 59.03% <ø> (ø)

... and 2 files with indirect coverage changes

@Xazax-hun
Copy link
Contributor Author

I run into this because including this header in the project I am working on made instances of this warning appear even though we have it disabled in our project files.

@quentin quentin merged commit a779dbe into souffle-lang:master Dec 23, 2023
30 checks passed
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