Skip to content

Fix "Bitmasking for introspection of Objective-C object pointers is strongly discouraged" warning in Xcode 5 #133

Description

@roustem

.../JSONKit/JSONKit.m:2600:77: warning: bitmasking for introspection of Objective-C object pointers is strongly discouraged [-Wdeprecated-objc-pointer-introspection]
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) & 0x1)) ? YES : NO;
~~~~~~~~~~~~~~~~~~~~ ^
.../JSONKit/JSONKit.m:199:53: note: expanded from macro 'JK_EXPECT_F'

define JK_EXPECT_F(cond) JK_EXPECTED(cond, 0U)

                                                ^

.../JSONKit/JSONKit.m:197:65: note: expanded from macro 'JK_EXPECTED'

define JK_EXPECTED(cond, expect) __builtin_expect((long)(cond), (expect))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions