mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
1b91607fc1
commit
a3cdc403cb
3 changed files with 9 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue