bugGNUstep - Bugs: bug #9601, NSMutableSet gcc-3.3.4 compiler...

Group
 
 

bug #9601: NSMutableSet gcc-3.3.4 compiler error

Submitter:  Chad Hardin <cehardin>
Submitted:  Fri 09 Jul 2004 12:46:54 PM UTC
   
 
Category:  Base/Foundation Severity:  2 - Minor
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Aug 2004 08:23:44 AM UTC, comment #1: 

Presumably you have a +set method which returns void.
Arguably, the compiler should know that it should use the +set belonging top the NSSet class rather than your other +set method. That's perhaps an issue to take up with the gcc maintainers?
In any case, this is not a base library bug.

Richard Frith-Macdonald <CaS>
Group Member
Fri 09 Jul 2004 12:46:54 PM UTC, original submission:  

For some reason I get the following compiler error:

error: void value not ignored as it ought to be

When doing a:

NSMutableSet *set;
set = [NSMutableSet set];

when using gcc verson 3.3.4 on i686 and gnustep cvs.

my workaround was to do a:
 
set = [NSMutableSet setWithCapacity:1];

which worked fine.  Strange.


Chad Hardin <cehardin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-22 FredKiefer Open/ClosedDeclined Closed
2004-08-24 CaS StatusNone Invalid
    Open/ClosedOpen Declined

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code