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:
fredkiefer 2011-05-28 20:27:20 +00:00
parent b8fbec2b52
commit b79e6ba0be
3 changed files with 9 additions and 7 deletions

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.
*/