Skip to content

Fix additional deprecation warnings.#38

Merged
douglaskayama merged 3 commits intomacvim-dev:masterfrom
jpetrie:fix-warnings
Jul 6, 2015
Merged

Fix additional deprecation warnings.#38
douglaskayama merged 3 commits intomacvim-dev:masterfrom
jpetrie:fix-warnings

Conversation

@jpetrie
Copy link
Copy Markdown
Contributor

@jpetrie jpetrie commented May 29, 2015

This change address two more classes of warnings found in the Xcode project:

  • checks for the weak symbols that may not exist when running on earlier than 10.5 explicitly use the address of the symbol in question
  • [NSScroller scrollerWidth] was deprecated in 10.7; the modern equivalent is [NSScroller scrollerWidthForControlSize]; the method is only invoked once per function now, as well, as a way to handle the availability macro guards more cleanly.

@chdiza
Copy link
Copy Markdown
Contributor

chdiza commented May 29, 2015

As long as this doesn't break building on Tiger...

@jpetrie
Copy link
Copy Markdown
Contributor Author

jpetrie commented May 29, 2015

I don't think it will - I left the old calls in place in the negative branches of the availability macro branches. I don't have any way to test building on Tiger, though, so it's possible I've made a mistake.

EDIT: I did make a mistake, as you discovered with issue #40. I am pretty sure I know how to fix it though.

- added availability macro constants for OS X versions through 10.10.3
  so compilation on earlier OS versions still works.
- added a versioning guard to a NSScroller change that slipped by
  unnoticed in a previous commit.
douglaskayama added a commit that referenced this pull request Jul 6, 2015
Fix additional deprecation warnings.
@douglaskayama douglaskayama merged commit 4e52b08 into macvim-dev:master Jul 6, 2015
splhack pushed a commit that referenced this pull request Oct 15, 2015
Problem:    C indenting is wrong below a "case (foo):" because it is
            recognized as a C++ base class construct.  Issue #38.
Solution:   Check for the case keyword.
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.

3 participants