bugGNUstep - Bugs: bug #27612, header problem with appkit on gcc...

 
 

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

bug #27612: header problem with appkit on gcc 2.95

Submitted by:  Riccardo Mottola <rmottola>
Submitted on:  Mon 05 Oct 2009 11:29:22 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 06 Oct 2009 11:33:21 AM UTC, comment #3:

Ok. I just wanted to be sure about what it was. I long searched for the problem inside the app before doing the testcase.

I don't see it possible to cast, I htink the workarond for Richard is a viable solution. Thank you.

Riccardo Mottola <rmottola>
Project Member
Tue 06 Oct 2009 08:39:24 AM UTC, comment #2:

Agreed ... this is just a compiler bug and I'm afraid you just have to work around it by not calling the NSSet +set method. (Use [[NSSet new] autorelease]

Richard Frith-Macdonald <CaS>
Project Member
Tue 06 Oct 2009 12:00:43 AM UTC, comment #1:

nothing gnustep can really do about this, it looks like your compiler is confusing -[NSColor set] and +[NSSet set],

you can try and avoid including both NSColor.h and NSSet.h, avoid +set, or switch to an unaffected compiler :/,

i'm not aware of any way to work around it anyhow, (with instance methods you can do some casting i believe, but what are you going to cast the NSSet class to? ...)

matt rice <ratmice>
Project Member
Mon 05 Oct 2009 11:29:22 PM UTC, original submission:

I verified on two separate gcc 2.95 machines that there is a problem with NSSet and the AppKit header.

IN the attached example, if the AppKit header is included, the example will fail to compile, if it is not included it will compile.

Compiling file main.m ...
main.m: In function `main':
main.m:34: void value not ignored as it ought to be

Riccardo Mottola <rmottola>
Project Member

 

Attached Files
file #18818:  main.m added by rmottola (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by ratmice (Posted a comment)
  • -unavailable- added by rmottola (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Oct 2009 08:39:24 AM UTCCaSStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 05 Oct 2009 11:29:22 PM UTCrmottolaAttached File-=>Added main.m, #18818

    Back to the top


    Powered by Savane 3.1-cleanup1