discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep-gui compilation warnings


From: Fred Kiefer
Subject: Re: GNUstep-gui compilation warnings
Date: Sun, 16 Jan 2005 17:27:18 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906

Jing Chen wrote:
Hey there,

I am a newbie, and excuse me if i am asking stupid questions. The
compilation of GNUstep-gui gave me many warnings. What do they mean?


Looks like you never did get a reply to this mail.

Most of the warnings you have listed are really harmless. They just show that you are using an over critical gcc release. When it complains that there are two different signatures for the same method name found you may savely ignore it. When it complains that there may be no implementation for a method, this mostly is an order problem inside of the GNUstep code, or comes from a private method being used. These cases should be corrected, but they wont cause harm either. The few remaining warnings are well known, but yes, we should try to remove them as well.

Cheers
Fred



-----------------------------------
NSMenu.m: In function `-[NSMenu update]':
NSMenu.m:798: warning: multiple methods named `-validateMenuItem:' found
../Headers/AppKit/NSMenu.h:562: warning: using
`-(BOOL)validateMenuItem:(id <NSM enuItem>)menuItem'
../Headers/AppKit/NSMenu.h:567: warning: also found
`-(BOOL)validateMenuItem:(NS MenuItem *)aMenuItem'
NSOpenGLContext.m: In function `+[NSOpenGLContext currentContext]':
NSOpenGLContext.m:68: warning: multiple methods named `+currentContext' found
../Headers/AppKit/NSOpenGL.h:95: warning: using `+(NSOpenGLContext
*)currentCont ext'
../Headers/AppKit/NSGraphicsContext.h:168: warning: also found
`+(NSGraphicsCont ext *)currentContext'
NSPanel.m: In function `-[NSPanel sendEvent:]':
NSPanel.m:171: warning: `NSPanel' may not respond to
`-_sendEvent:becomesKeyOnly IfNeeded:'
NSPanel.m:171: warning: (Messages without a matching method signature
NSPanel.m:171: warning: will be assumed to return `id' and accept
NSPanel.m:171: warning: `...' as arguments.)
NSProgressIndicator.m:36: warning: 'images' defined but not used
NSToolbar.m: In function `-[NSToolbar _setDisplayMode:broadcast:]':
NSToolbar.m:205: warning: `GSToolbar' may not respond to `+_toolbars'
NSToolbar.m:205: warning: (Messages without a matching method signature
NSToolbar.m:205: warning: will be assumed to return `id' and accept
NSToolbar.m:205: warning: `...' as arguments.)
NSToolbar.m: In function `-[NSToolbar _setSizeMode:broadcast:]':
NSToolbar.m:220: warning: `GSToolbar' may not respond to `+_toolbars'
NSToolbar.m: In function `-[NSToolbar _setVisible:broadcast:]':
NSToolbar.m:248: warning: `GSToolbar' may not respond to `+_toolbars'
NSToolbarItem.m: In function `-[NSToolbarItem validate]':
NSToolbarItem.m:1308: warning: multiple methods named `-validateMenuItem:' found
../Headers/AppKit/NSMenu.h:562: warning: using
`-(BOOL)validateMenuItem:(id <NSM enuItem>)menuItem'
../Headers/AppKit/NSMenu.h:567: warning: also found
`-(BOOL)validateMenuItem:(NS MenuItem *)aMenuItem'
NSView.m: In function `-[NSView convertPoint:fromView:]':
NSView.m:1178: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
NSView.m: In function `-[NSView convertPoint:toView:]':
NSView.m:1206: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
NSView.m: In function `-[NSView convertRect:fromView:]':
NSView.m:1279: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
NSView.m: In function `-[NSView convertRect:toView:]':
NSView.m:1315: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
NSView.m: In function `-[NSView convertSize:fromView:]':
NSView.m:1344: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
NSView.m: In function `-[NSView convertSize:toView:]':
NSView.m:1374: warning: multiple methods named `-contentView' found
../Headers/AppKit/NSScrollView.h:87: warning: using `-(NSClipView *)contentView'
../Headers/AppKit/NSWindow.h:515: warning: also found `-(id)contentView'
GSMemoryPanel.m: In function `-[GSMemoryPanel init]':
GSMemoryPanel.m:208: warning: multiple methods named
`-initWithIdentifier:' found
../Headers/AppKit/NSTableColumn.h:54: warning: using
`-(id)initWithIdentifier:(id)anObject'
../Headers/Additions/GNUstepGUI/GSToolbar.h:86: warning: also found
`-(id)initWithIdentifier:(NSString *)identifier'
GSMemoryPanel.m:213: warning: multiple methods named
`-initWithIdentifier:' found
../Headers/AppKit/NSTableColumn.h:54: warning: using
`-(id)initWithIdentifier:(id)anObject'
../Headers/Additions/GNUstepGUI/GSToolbar.h:86: warning: also found
`-(id)initWithIdentifier:(NSString *)identifier'
GSMemoryPanel.m:218: warning: multiple methods named
`-initWithIdentifier:' found
../Headers/AppKit/NSTableColumn.h:54: warning: using
`-(id)initWithIdentifier:(id)anObject'
../Headers/Additions/GNUstepGUI/GSToolbar.h:86: warning: also found
`-(id)initWithIdentifier:(NSString *)identifier'
GSMemoryPanel.m:223: warning: multiple methods named
`-initWithIdentifier:' found
../Headers/AppKit/NSTableColumn.h:54: warning: using
`-(id)initWithIdentifier:(id)anObject'
../Headers/Additions/GNUstepGUI/GSToolbar.h:86: warning: also found
`-(id)initWithIdentifier:(NSString *)identifier'
GSMemoryPanel.m: In function `-[GSMemoryPanel reorder:]':
GSMemoryPanel.m:415: warning: multiple methods named `-identifier' found
../Headers/AppKit/NSTableColumn.h:59: warning: using `-(id)identifier'
../Headers/Additions/GNUstepGUI/GSToolbar.h:103: warning: also found
`-(NSString *)identifier'
NSTextView.m:2341: warning: incomplete implementation of class `NSTextView'
NSTextView.m:2341: warning: method definition for `-selectedRange' not found
NSTextView.m:2341: warning: class `NSTextView' does not fully
implement the `NSTextInput' protocol
GSToolbarView.m: In function `-[GSToolbarView _insertionIndexAtPoint:]':
GSToolbarView.m:869: warning: `GSToolbarButton' may not respond to `+class'
GSToolbarView.m:869: warning: (Messages without a matching method signature
GSToolbarView.m:869: warning: will be assumed to return `id' and accept
GSToolbarView.m:869: warning: `...' as arguments.)
GSToolbarView.m:870: warning: `GSToolbarBackView' may not respond to `+class'
NSPasteboard.m: In function `-[GSFiltered pasteboard:provideDataForType:]':
NSPasteboard.m:664: warning: 'info' might be used uninitialized in this function
GMAppKit.m: In function `-[NSPopUpButton(GMArchiverMethods)
initWithModelUnarchiver:]':
GMAppKit.m:1023: warning: multiple methods named `-target' found
/usr/GNUstep/System/Library/Headers/Foundation/NSInvocation.h:66:
warning: using `-(id)target'
/usr/GNUstep/System/Library/Headers/Foundation/NSProtocolChecker.h:52:
warning: also found `-(NSObject *)target'
------------------------------------



reply via email to

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