Minor cleanup to avoid compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24311 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-01-04 08:36:08 +00:00
parent f3ba38c1da
commit 8abd7f5743
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-01-04 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: (initialize) tiny cleanup to avoid compiler
warnings if compiled for NeXT runtime.
2006-12-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Fix keyed archiving error.

View file

@ -719,8 +719,6 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
if (self == [NSBundle class])
{
NSDictionary *env;
void *state = NULL;
Class class;
_emptyTable = RETAIN([NSDictionary dictionary]);
@ -777,6 +775,9 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
}
#else
{
void *state = NULL;
Class class;
while ((class = objc_next_class(&state)))
{
unsigned int len = strlen (class->name);