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

warnings when building with -Weverything #71

Closed
core-code opened this issue Jul 9, 2018 · 3 comments
Closed

warnings when building with -Weverything #71

core-code opened this issue Jul 9, 2018 · 3 comments

Comments

@core-code
Copy link

all of these individual warnings come up when compiling ONOXMLDocument.m with -Weverything

-Wshadow
-Wsign-conversion
-Wfloat-conversion
-Wconversion
-Wnullable-to-nonnull-conversion
-Wcast-qual

@mattt
Copy link
Owner

mattt commented Jul 10, 2018

Thanks for bringing this to my attention, @core-code. I just pushed version 2.1.0, which should resolve all of the warnings you were seeing. Please let me know if there are any stray ones that I missed, and I'll be happy to take another look.

@mattt mattt closed this as completed Jul 10, 2018
@core-code
Copy link
Author

awesome thanks.

just a minor heads-up, i think the #pragma clang diagnostic push at the bottom of ONOXMLDocument.h should read "pop" not "push"

@mattt
Copy link
Owner

mattt commented Jul 13, 2018

😓 Yikes. That's no good. I'm surprised the compiler didn't warn about that.

I fixed this with 39ece84, and fixed a related issue I found in Xcode 9.4.1 with 33b38b8. These are pushed with 2.1.1.

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

No branches or pull requests

2 participants