You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mike Riley (Updated) (JIRA)" <ji...@apache.org> on 2011/11/19 12:22:51 UTC

[jira] [Updated] (THRIFT-1430) Fixes for property warnings generated in struct headers

     [ https://issues.apache.org/jira/browse/THRIFT-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Riley updated THRIFT-1430:
-------------------------------

    Attachment: thrift-1430.patch
    
> Fixes for property warnings generated in struct headers
> -------------------------------------------------------
>
>                 Key: THRIFT-1430
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1430
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Cocoa - Compiler
>    Affects Versions: 0.7
>            Reporter: Mike Riley
>            Priority: Trivial
>         Attachments: thrift-1430.patch
>
>
> Every struct generates warnings in the header because the properties are declared twice, once implicitly through the property declaration and once explicitly by the actual function declarations. This was done to increase compatibility with older versions of objective c that didn't have the ability to use the property syntax as it is declared now. This is harmless but you get two warnings per struct member, and in my case that worked out to a few hundred warnings.
> The fix here is a simple refactor for isSet method declaration, and placing the declaration of the alternate getter/setter implementations into an #else statement beneath the currently existing #if statement, as opposed to just declaring them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira