Skip to content

XCode 4.4.1 Error Macro ARC #11

Description

@kajinka13

I would like to report an error in the use of macros to support ARC.

file: TBXML+HTTP.m:

/****************************************************************/

ifndef ARC_ENABLED <<<<<<< error, invert control

return [request autorelease];

else

return request;

endif

FIX:

ifdef ARC_ENABLED

return [request autorelease];

else

return request;

endif

/****************************************************************/

ifndef ARC_ENABLED <<<<<<< error, invert control

[params release];
return [request autorelease];

else

return request;

endif

FIX:

ifdef ARC_ENABLED

[params release];
return [request autorelease];

else

return request;

endif

/****************************************************************/

file: TBXML.m:

/****************************************************************/

ifndef ARC_ENABLED <<<<<<< error, invert control

[super dealloc];

endif

FIX:

ifdef ARC_ENABLED

[super dealloc];

endif

/****************************************************************/

value = [NSString stringWithString:@""]; <<<<<<< fix warning

FIX:

value = @"";
/****************************************************************/

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions