Remove compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33184 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-05-28 20:27:20 +00:00
parent 1b91607fc1
commit a3cdc403cb
3 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2011-05-28 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSNotificationCenter.m,
* Source/NSUserDefaults.m: Remove compiler warnings.
2011-05-28 18:05 David Chisnall <theraven@gna.org>
* libs/base/trunk/Source/NSPointerArray.m:

View file

@ -316,6 +316,8 @@ static Observation *obsNew(NCTable* t)
{
static Class observationClass;
static size_t observationSize;
Observation *obs;
if (0 == observationClass)
{
observationClass = [GSObservation class];
@ -324,7 +326,6 @@ static Observation *obsNew(NCTable* t)
#if __OBJC_GC__
return NSAllocateObject(observationClass, 0, _zone);
#else
Observation *obs;
if (t->freeList == 0)
{

View file

@ -386,16 +386,12 @@ newLanguages(NSArray *oldNames)
+ (void) resetStandardUserDefaults
{
NSDictionary *regDefs;
NSDictionary *regDefs = nil;
[classLock lock];
NS_DURING
{
if (nil == sharedDefaults)
{
regDefs = nil;
}
else
if (nil != sharedDefaults)
{
/* Extract the registration domain from the old defaults.
*/