Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Reduce deprecation warnings in atomic.swift #4

Closed
ssoper opened this issue Jan 7, 2016 · 3 comments
Closed

Reduce deprecation warnings in atomic.swift #4

ssoper opened this issue Jan 7, 2016 · 3 comments

Comments

@ssoper
Copy link
Contributor

ssoper commented Jan 7, 2016

No description provided.

@ssoper
Copy link
Contributor Author

ssoper commented Jan 7, 2016

The only remaining warnings (in addition to the anyGenerator) are these

/Users/ssoper/workspace/Safe/Source/chan.swift:100:9: warning: C-style for statement is deprecated and will be removed in a future version of Swift
        for ;; {
        ^
/Users/ssoper/workspace/Safe/Source/select.swift:110:9: warning: C-style for statement is deprecated and will be removed in a future version of Swift
        for ;; {

@tidwall
Copy link
Owner

tidwall commented Jan 8, 2016

I made a note to PR #5 regarding the postfix/prefix operations.

The only concern I have with changing from anyGenerator to AnyGenerator is that it breaks 2.1 and below. Is there a preprocessor conditional for Swift 2.2? Or can we suppress this warning?

@tidwall
Copy link
Owner

tidwall commented Jan 11, 2016

I cleared out all the deprecation warnings except for the anyGenerator and opened a new issue #7.

@tidwall tidwall closed this as completed Jan 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants