bugGNUstep - Bugs: bug #11080, NSNotificationCenter.m (GNUstep)...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11080: NSNotificationCenter.m (GNUstep) setImmutableInPost returns uninitialized value

Submitted by:  None
Submitted on:  Sun 21 Nov 2004 03:32:20 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 22 Nov 2004 12:01:58 PM UTC, comment #1:

Removed this non-functional method.
Thanks for noticing it ... the method shouldn't have been there at all since it wasn't implemented to do anything
and had only been introduced for experimentation when doing some performance testing.

Richard Frith-Macdonald <CaS>
Project Member
Sun 21 Nov 2004 03:32:20 PM UTC, original submission:

The compiler is right when it states that in the following function, take from the actual CVS version of NSNotificationCenter.m, the returned local variable "old" is never set to any value and thus returned uninitialized.

- (BOOL) setImmutableInPost: (BOOL)flag
{
BOOL old;

lockNCTable(TABLE);

if (self == default_center)
{
unlockNCTable(TABLE);
[NSException raise: NSInvalidArgumentException
format: @"Can't change behavior of default center."];
}
if (LOCKCOUNT > 1)
{
unlockNCTable(TABLE);
[NSException raise: NSInvalidArgumentException
format: @"Can't change behavior during post."];
}

unlockNCTable(TABLE);

return old;
}

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 22 Nov 2004 12:01:58 PM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1