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

Resolved pedantic warnings; fixed Retina images #79

Merged
merged 2 commits into from
Mar 26, 2015

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Mar 26, 2015

  • Enabled pedantic warnings, which are enabled in mapbox/mapbox-gl-native, as well as a warning that Xcode recommends.
  • Resolved various warnings, adding an exception around some MIN() / MAX() usage.
  • Followed up f3393f0 with some renamed methods that match what +embeddedImageNamed: now expects.

Enabled pedantic warnings, which are enabled in mapbox/mapbox-gl-native, as well as a warning that Xcode recommends. Resolved various warnings, adding an exception around some `MIN()` / `MAX()` usage. Followed up f3393f0 with some renamed methods that match what `+embeddedImageNamed:` now expects.
@@ -122,7 +122,7 @@ - (UIView *)subtitleViewOrDefault {

- (SMCalloutBackgroundView *)backgroundView {
// create our default background on first access only if it's nil, since you might have set your own background anyway.
return _backgroundView ?: (_backgroundView = [self defaultBackgroundView]);
Copy link
Owner

Choose a reason for hiding this comment

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

Interesting; the ?: operator causes a warning?

Copy link
Owner

Choose a reason for hiding this comment

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

Yep just reproduced it. That sucks, I love that operator! Oh well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do too… :-\

@nfarina
Copy link
Owner

nfarina commented Mar 26, 2015

Thanks for the patch! Merging now.

nfarina added a commit that referenced this pull request Mar 26, 2015
Resolved pedantic warnings; fixed Retina images
@nfarina nfarina merged commit 0c00bbb into nfarina:master Mar 26, 2015
@1ec5 1ec5 deleted the 1ec5-pedantry branch March 26, 2015 22:06
1ec5 added a commit to mapbox/mapbox-gl-native that referenced this pull request Mar 26, 2015
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