aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-10-27 19:33:36 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-10-27 19:33:36 +0000
commitfbaa3462f3ca659bf4199cba7fe83341c9cdd672 (patch)
treef481e3ddcd2b6a67c1da90f0e51382d99546f14a /UnitTesting
parent271d8e2428c4c22fbfe6b108fb9e3cb028976c0c (diff)
[Author: jfaller]
Fix compiler warning with -Wall R=dmaclach,thomasvl DELTA=2 (0 added, 0 deleted, 2 changed)
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMNSObject+UnitTesting.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/UnitTesting/GTMNSObject+UnitTesting.h b/UnitTesting/GTMNSObject+UnitTesting.h
index 4f11cc2..3a1d00b 100644
--- a/UnitTesting/GTMNSObject+UnitTesting.h
+++ b/UnitTesting/GTMNSObject+UnitTesting.h
@@ -69,7 +69,7 @@ do { \
NSString *failString = nil; \
BOOL isGood = GTMIsObjectImageEqualToImageNamed(a1Object, a2String, &failString); \
if (!isGood) { \
- if (description) { \
+ if (description != nil) { \
STFail(@"%@: %@", failString, STComposeString(description, ##__VA_ARGS__)); \
} else { \
STFail(@"%@", failString); \
@@ -107,7 +107,7 @@ do { \
NSString *failString = nil; \
BOOL isGood = GTMIsObjectStateEqualToStateNamed(a1Object, a2String, &failString); \
if (!isGood) { \
- if (description) { \
+ if (description != nil) { \
STFail(@"%@: %@", failString, STComposeString(description, ##__VA_ARGS__)); \
} else { \
STFail(@"%@", failString); \