From ddc2d68becb6f268a545fe58126640d490aabe14 Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 11 Feb 2011 12:36:40 +0000 Subject: [PATCH] Add some asserts to NSMethodSignature to make the analyser happy. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32065 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMethodSignature.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/NSMethodSignature.m b/Source/NSMethodSignature.m index b81bbb0db..81bdb1670 100644 --- a/Source/NSMethodSignature.m +++ b/Source/NSMethodSignature.m @@ -452,6 +452,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes) if (_inf == 0) { [self methodInfo]; + NSAssert(0 != _inf, @"Initialising failed"); } return _inf[index+1]; } @@ -471,6 +472,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes) if (_inf == 0) { [self methodInfo]; + NSAssert(0 != _inf, @"Initialising failed"); } return _inf[index+1].qtype; } @@ -480,6 +482,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes) if (_inf == 0) { [self methodInfo]; + NSAssert(0 != _inf, @"Initialising failed"); } return (_inf[0].qual & _F_ONEWAY) ? YES : NO; } @@ -489,6 +492,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes) if (_inf == 0) { [self methodInfo]; + NSAssert(0 != _inf, @"Initialising failed"); } return _inf[0].size; } @@ -498,6 +502,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes) if (_inf == 0) { [self methodInfo]; + NSAssert(0 != _inf, @"Initialising failed"); } return _inf[0].qtype; }