Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 58d7a18

Browse files
committed
[Build] Tag __unused for variable only needed by an assertion.
1 parent 252508e commit 58d7a18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKit/ASDisplayNode.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ + (void)initialize
204204
struct ASDisplayNodeFlags flags = GetASDisplayNodeFlags(self, nil);
205205
ASDisplayNodeMethodOverrides methodOverrides = GetASDisplayNodeMethodOverrides(self);
206206

207-
Class initializeSelf = self;
207+
__unused Class initializeSelf = self;
208208

209209
IMP staticInitialize = imp_implementationWithBlock(^(ASDisplayNode *node) {
210210
ASDisplayNodeAssert(node.class == initializeSelf, @"Node class %@ does not have a matching _staticInitialize method; check to ensure [super initialize] is called within any custom +initialize implementations! Overridden methods will not be called unless they are also implemented by superclass %@", node.class, initializeSelf);

0 commit comments

Comments
 (0)