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)