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

Introduce compiler check if const is casted away. #83

Merged
merged 2 commits into from
Dec 8, 2016

Conversation

gatzka
Copy link
Contributor

@gatzka gatzka commented Dec 8, 2016

No description provided.

There was a long running discussion here
DaveGamble#80 how to provide const
correctness for users of cJSON.

To avoid breaking changes for users of cJSON v1 it was decided to
disable this warning.

pragma was tested with gcc 5.4.0/6.2.1 and clang 3.8/3.9.
@FSMaxB
Copy link
Collaborator

FSMaxB commented Dec 8, 2016

Actually, old versions of GCC don't support some of the warnings anyways (-Wstrict-overflow for example), when compiling with old compilers, you just have to disable the custom compiler flags.

@FSMaxB FSMaxB merged commit a0431e2 into DaveGamble:master Dec 8, 2016
@gatzka gatzka deleted the feature/cast_qual_v3 branch December 8, 2016 21:14
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