bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #51842] derived_src class has no base: correct, but triggers a warn


From: Fred Kiefer
Subject: [bug #51842] derived_src class has no base: correct, but triggers a warning from clang-6.x
Date: Thu, 24 Aug 2017 16:03:10 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8

Update of bug #51842 (project gnustep):

                Category:         Base/Foundation => Makefiles              
                  Status:               Need Info => Invalid                
             Assigned to:                    None => FredKiefer             
             Open/Closed:                    Open => Declined               

    _______________________________________________________

Follow-up Comment #4:

Thank you for this clarification. I am able to switch the category for you and
will do so.

What I disagree on is that this is an actual GNUstep bug. GNUstep make is
doing the right thing by not providing this compiler flag. In Objective-C all
classes are expected to either inherit from NSObject of NSProxy. In the rare
case where this is not true, the developer should flag the class in a way to
tell the compiler about this special case. 

Please see this article on how to do it:
https://stackoverflow.com/questions/14842259/defining-an-objective-c-class-without-a-base-class-compiler-warning

The second case should work with GNUstep as we don't provide the NS_ROOT_CLASS
macro.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51842>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]