Skip to content

Fixing warnings. Added JSONCPP_DEPRECATED definition for clang. Also … #641

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 5, 2017

Conversation

maksdamir
Copy link

…updating .gitignore to ignore .DS_Store files (Mac OS Finder generated)

…updating .gitignore to ignore .DS_Store files (Mac OS Finder generated)
return writer.write(*this);
StreamWriterBuilder builder;

JSONCPP_STRING out = this->hasComment(commentBefore) ? "\n" : "";
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems slow. And this might alter the behavior of toStyledString().

@@ -1345,6 +1355,25 @@ bool OurReader::readComment() {
return true;
}

JSONCPP_STRING OurReader::normalizeEOL(OurReader::Location begin, OurReader::Location end) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather not duplicate so much code. Is there a simpler way?

@cdunn2001 cdunn2001 merged commit 6062f9b into open-source-parsers:master Aug 5, 2017
@cdunn2001
Copy link
Contributor

I'm not sure this was a helpful change. Deprecation in documentation is fine, but as a compiler warning, it affects our CI builds. I don't like to see any warnings when I compile.

I'm thinking of reverting this entire change, but maybe it would be enough to revert only the new deprecation warnings for the classes.

@maksdamir
Copy link
Author

maksdamir commented Aug 16, 2017

Fixing the compiler warnings was actually the exact reason for making that change - when compiling with clang I'm seeing the warnings about methods and classes marked as deprecated in documentation, but not with corresponding attributes.

What warnings do you see currently?

@cdunn2001
Copy link
Contributor

Well, when I look at the AppVeyor build, I see tons of warnings now. I'd rather not see any warnings. I could live with one or two.

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