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

                 Summary: derived_src class has no base: correct, but triggers
a warning from clang-6.x
                 Project: GNUstep
            Submitted by: dlobron
            Submitted on: Thu 24 Aug 2017 06:05:33 PM UTC
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When I upgraded to clang-6.0.0 on Linux, a build of my code triggered a
warning:

 Compiling file derived_src/NSFramework_AkamaiKit.m ...
derived_src/NSFramework_AkamaiKit.m:2:12: warning: class
'NSFramework_AkamaiKit' defined without specifying a base class
[-Wobjc-root-class]
@interface NSFramework_AkamaiKit
           ^
derived_src/NSFramework_AkamaiKit.m:2:33: note: add a super class to fix this
problem
@interface NSFramework_AkamaiKit
                                ^
                                 : NSObject 

I can work around this by adding -Wno-objc-root-class to my build, but it
would be better if this auto-generated code could could be wrapped in a macro
that would prevent the warning.  It's correct for there to be no super class.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to