From dc8be2905e3c6b98105dcfe0b22e1b598b47b417 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 22 Oct 2011 22:04:43 +0000 Subject: [PATCH] Add explicit cast to silence a warning. --- properties.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.m b/properties.m index e4aea0f..faea56f 100644 --- a/properties.m +++ b/properties.m @@ -343,7 +343,7 @@ const char *property_getAttributes(objc_property_t property) *insert = '\0'; // If another thread installed the encoding string while we were computing // it, then discard the one that we created and return theirs. - if (!__sync_bool_compare_and_swap(&(property->name), name, encoding)) + if (!__sync_bool_compare_and_swap(&(property->name), name, (char*)encoding)) { free(encoding); return property->name + 2;