From 9234b0af727eb70b8b943053670b0d34cadb00f4 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 26 Feb 2011 19:23:26 +0000 Subject: [PATCH] Fixed C99ism. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32381 72102866-910b-0410-8b05-ffd578937521 --- Source/GSBlocks.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/GSBlocks.m b/Source/GSBlocks.m index 09558174f..5aa692c9e 100644 --- a/Source/GSBlocks.m +++ b/Source/GSBlocks.m @@ -12,6 +12,7 @@ void _Block_release(void *); + (void)load { unsigned int methodCount; + Method *m = methods = NULL; Method *methods = class_copyMethodList(self, &methodCount); id blockClass = objc_lookUpClass("_NSBlock"); @@ -22,7 +23,7 @@ void _Block_release(void *); // Copy all of the methods in this class onto the block-runtime-provided // _NSBlock - for (Method *m = methods ; NULL!=*m ; m++) + for (m = methods ; NULL!=*m ; m++) { class_addMethod(blockClass, method_getName(*m), method_getImplementation(*m), method_getTypeEncoding(*m));