-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix Objective-C 2.0 error with gcc-4.0 #1272
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
Conversation
I'll be happy to do that. Unfortunately I don't understand how to obtain the code so I can try to build it. When I follow the link in github's email: https://github.com/dmcdougall/matplotlib I also looked at the patch link, but I'm not sure what to do with the page. Can you point me to a repository that is a complete distribution and contains the patch so I can clone the whole thing at once, -- Russell On Sep 17, 2012, at 3:21 PM, Damon McDougall wrote:
|
Never mind. I think I managed to pull it down. I just need to checkout branch mac_objc1. -- Russell On Sep 17, 2012, at 3:21 PM, Damon McDougall wrote:
|
I think you will need to checkout |
I would suggest to use NSEnumerator* enumerator = [windowsArray objectEnumerator]; since enumerators were built for this kind of loops. Also, as far as I know you don't need to retain / release the windowsArray. |
@mdehoon Thanks Michiel, that sorts out the C99 declaration inside the for loop, too. I'll update it. |
@r-owen If you wouldn't mind, you can |
Will do. I'll let you know what happens. -- Russell On Sep 18, 2012, at 1:55 AM, Damon McDougall wrote:
|
That did the trick. I build it successfully on Mac OS X 10.4 (with the usual XCode gcc 4.0) and ran the unit tests. I am missing some 3rd party packages required for full test coverage (trying to install those on such an old system is more than I want to attempt), but those that ran did so without errors. Thank you for the fix! -- Russell On Sep 18, 2012, at 1:55 AM, Damon McDougall wrote:
|
Sweet. This is ready to merge, then. Thanks @r-owen for guinea-pigging. |
Fix Objective-C 2.0 error with gcc-4.0
Fixes #1270.
I'm not sure I have gcc-4.0 any more. @r-owen Could you try this?