[bug #51842] derived_src class has no base: correct, but triggers a warning from clang-6.x

Fred Kiefer <[email protected]>
Newsgroups gmane.comp.lib.gnustep.bugs
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.