gnustep-dev
[Top][All Lists]
Advanced

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

Warnings when compiling with clang


From: Vincent R.
Subject: Warnings when compiling with clang
Date: Sun, 28 Jul 2013 15:07:43 +0200
User-agent: Roundcube Webmail/0.6

Hi,

In my journey to compile gnustep with clang I have noticed some warnings in back, so it might me interesting to have a look :

This is gnustep-make 2.6.5. Type 'make print-gnustep-make-help' for help.
Making all in Source ...
Making all in subprojects of bundle libgnustep-back-023...
Making all for subproject gsc...
 Compiling file gscolors.c ...
 Compiling file GSContext.m ...
GSContext.m:190:9: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  if (([isa handlesPS] == NO) && contextType
        ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:209:19: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
      gstate = [[[isa GStateClass] allocWithZone: z]
                  ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:496:4: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage] [isa insertObject: AUTORELEASE([gstate copy]) forKey: ++unique_index];
   ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:511:4: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  [isa insertObject: AUTORELEASE([gstate copy]) forKey: gst];
   ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:991:6: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
    [isa insertObject: obj forKey: n];
     ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:998:28: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  if (index < 0 || (obj = [isa getObjectForKey: index]) == nil)
                           ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:1008:21: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  if (index < 0 || [isa getObjectForKey: index] == nil)
                    ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
GSContext.m:1013:4: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  [isa removeObjectForKey: index];
   ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
8 warnings generated.
 Compiling file GSGState.m ...
 Compiling file GSStreamContext.m ...
 Compiling file GSStreamGState.m ...
 Compiling file GSFunction.m ...
 Compiling file externs.m ...
 Linking subproject gsc ...
clang-3.3: warning: argument unused during compilation: '-pthread'
Making all for subproject x11...
 Compiling file context.c ...
 Compiling file convert.c ...
 Compiling file raster.c ...
 Compiling file scale.c ...
 Compiling file xdnd.c ...
 Compiling file xutil.c ...
 Compiling file XGServer.m ...
XGServer.m:811:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation]
- (void) _updateInputMethodState
^
/GNUstep/Local/Library/Headers/AppKit/NSTextView.h:439:1: note: method '_updateInputMethodState' declared here
-(void) _updateInputMethodState;
^
XGServer.m:862:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation]
- (void) _updateInputMethodWithInsertionPoint: (NSPoint)insertionPoint
^
/GNUstep/Local/Library/Headers/AppKit/NSTextView.h:440:1: note: method '_updateInputMethodWithInsertionPoint:' declared here
-(void) _updateInputMethodWithInsertionPoint: (NSPoint)insertionPoint;
^
2 warnings generated.
 Compiling file XGServerEvent.m ...
 Compiling file XGServerWindow.m ...
XGServerWindow.m:2754:8: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
      [isa waitAllContexts];
       ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
XGServerWindow.m:3624:8: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
      [isa waitAllContexts];
       ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
XGServerWindow.m:3699:8: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
      [isa waitAllContexts];
       ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
3 warnings generated.
 Compiling file XGDragView.m ...
XGDragView.m:421:13: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage]
  window = [isa _windowWithTag: winNum];
            ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
1 warning generated.
 Compiling file XIMInputServer.m ...
 Compiling file XWindowBuffer.m ...
XWindowBuffer.m:648:14: warning: direct access to Objective-C's isa is deprecated in favor of object_getClass() [-Wdeprecated-objc-isa-usage] [isa _gotShmCompletion: ((XShmCompletionEvent *)&e)->drawable];
             ^
/GNUstep/Local/Library/Headers/Foundation/NSObject.h:293:9: note: instance variable is declared here
  Class isa;
        ^
1 warning generated.
 Compiling file XGGLFormat.m ...
 Compiling file XGGLContext.m ...
 Linking subproject x11 ...
clang-3.3: warning: argument unused during compilation: '-pthread'
Making all for subproject cairo...
 Compiling file CairoSurface.m ...
 Compiling file CairoFontInfo.m ...
 Compiling file CairoGState.m ...
CairoGState.m:1264:48: warning: format specifies type 'char *' but the argument has type 'CairoGState *' [-Wformat]
  NSDebugMLLog(@"CairoGState", @"%self: address@hidden", self);
                                 ~~            ^~~~
                                 %@
/GNUstep/Local/Library/Headers/GNUstepBase/NSDebug+GNUstepBase.h:154:45: note: expanded from macro 'NSDebugMLLog'
      [NSString stringWithFormat: format, ##args]); \
                                            ^
CairoGState.m:1264:42: warning: more '%' conversions than data arguments [-Wformat]
  NSDebugMLLog(@"CairoGState", @"%self: address@hidden", self);
                                        ~^
/GNUstep/Local/Library/Headers/GNUstepBase/NSDebug+GNUstepBase.h:154:35: note: expanded from macro 'NSDebugMLLog'
      [NSString stringWithFormat: format, ##args]); \
                                  ^
2 warnings generated.
 Compiling file CairoContext.m ...
 Compiling file CairoFontEnumerator.m ...
 Compiling file CairoFaceInfo.m ...
 Compiling file CairoPSSurface.m ...
 Compiling file CairoPDFSurface.m ...
 Compiling file XGCairoSurface.m ...
 Compiling file XGCairoXImageSurface.m ...
 Compiling file XGCairoModernSurface.m ...
 Linking subproject cairo ...
clang-3.3: warning: argument unused during compilation: '-pthread'
Making all for bundle libgnustep-back-023...
 Creating libgnustep-back-023.bundle/....
 Compiling file GSBackend.m ...
 Linking bundle libgnustep-back-023 ...
 Creating libgnustep-back-023.bundle/Resources...
 Copying localized resources into the bundle wrapper...
 Copying resources from subprojects into the bundle wrapper...
 Creating stamp file...
 Creating libgnustep-back-023.bundle/Resources/Info-gnustep.plist...
Making all in Tools ...
rm -f XGCommonFont.m
ln -s ../Source/xlib/XGCommonFont.m .
rm -f xdnd.c
ln -s ../Source/x11/xdnd.c .
Making all for tool gpbs...
 Compiling file xdnd.c ...
 Compiling file gpbs.m ...
gpbs.m:67:36: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      syslog (log_priority | prio, ebuf);
                                   ^~~~
1 warning generated.
 Compiling file xpbs.m ...
xpbs.m:204:25: warning: unused variable 'xFixesEventBase' [-Wunused-variable]
static int              xFixesEventBase;
                        ^
1 warning generated.
 Linking tool gpbs ...
Making all in Fonts ...
make[1]: Nothing to be done for `all'.



reply via email to

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