mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
b8fbec2b52
commit
b79e6ba0be
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>
|
2011-05-28 18:05 David Chisnall <theraven@gna.org>
|
||||||
|
|
||||||
* libs/base/trunk/Source/NSPointerArray.m:
|
* libs/base/trunk/Source/NSPointerArray.m:
|
||||||
|
|
|
@ -316,6 +316,8 @@ static Observation *obsNew(NCTable* t)
|
||||||
{
|
{
|
||||||
static Class observationClass;
|
static Class observationClass;
|
||||||
static size_t observationSize;
|
static size_t observationSize;
|
||||||
|
Observation *obs;
|
||||||
|
|
||||||
if (0 == observationClass)
|
if (0 == observationClass)
|
||||||
{
|
{
|
||||||
observationClass = [GSObservation class];
|
observationClass = [GSObservation class];
|
||||||
|
@ -324,7 +326,6 @@ static Observation *obsNew(NCTable* t)
|
||||||
#if __OBJC_GC__
|
#if __OBJC_GC__
|
||||||
return NSAllocateObject(observationClass, 0, _zone);
|
return NSAllocateObject(observationClass, 0, _zone);
|
||||||
#else
|
#else
|
||||||
Observation *obs;
|
|
||||||
|
|
||||||
if (t->freeList == 0)
|
if (t->freeList == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -386,16 +386,12 @@ newLanguages(NSArray *oldNames)
|
||||||
|
|
||||||
+ (void) resetStandardUserDefaults
|
+ (void) resetStandardUserDefaults
|
||||||
{
|
{
|
||||||
NSDictionary *regDefs;
|
NSDictionary *regDefs = nil;
|
||||||
|
|
||||||
[classLock lock];
|
[classLock lock];
|
||||||
NS_DURING
|
NS_DURING
|
||||||
{
|
{
|
||||||
if (nil == sharedDefaults)
|
if (nil != sharedDefaults)
|
||||||
{
|
|
||||||
regDefs = nil;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Extract the registration domain from the old defaults.
|
/* Extract the registration domain from the old defaults.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue