[google-toolbox-for-mac] r572 committed - [Author: dpb]...

10 views
Skip to first unread message

google-tool...@googlecode.com

unread,
Aug 14, 2012, 6:00:33 PM8/14/12
to google-tool...@googlegroups.com
Revision: 572
Author: gtm.daemon
Date: Tue Aug 14 15:00:17 2012
Log: [Author: dpb]

Avoid warning of dead store to self when using GTMInvalidateInitializer with
ARC.

R=dmaclach
APPROVED=dmaclach
DELTA=1 (1 added, 0 deleted, 0 changed)
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=572

Modified:
/trunk/GTMDefines.h

=======================================
--- /trunk/GTMDefines.h Tue Jul 24 13:30:18 2012
+++ /trunk/GTMDefines.h Tue Aug 14 15:00:17 2012
@@ -360,6 +360,7 @@
#if __has_feature(objc_arc)
#define GTMInvalidateInitializer() \
do { \
+ [self class]; /* Avoid warning of dead store to |self|. */ \
_GTMDevAssert(NO, @"Invalid initializer."); \
return nil; \
} while (0)
Reply all
Reply to author
Forward
0 new messages