Thank you to both of you. I added the missing imports. You should get less compilation warnings now.

Fred

On 22.07.2011 18:15, Sebastian Reitenbach wrote:

On Friday, July 22, 2011 09:26 CEST, Riccardo 
Mottola<[email protected]>  wrote:

Hi,

I get the following on windows:
   Compiling file NSMenuItem.m ...
   Compiling file NSMenuItemCell.m ...
NSMenuItem.m: In function `-[NSMenuItem setAttributedTitle:]':
NSMenuItem.m:514: warning: `NSAttributedString' may not respond to `-string'
NSMenuItem.m:514: warning: (Messages without a matching method signature
NSMenuItem.m:514: warning: will be assumed to return `id' and accept
NSMenuItem.m:514: warning: `...' as arguments.)
   Compiling file NSNib.m ...

   Compiling file NSTextFieldCell.m ...
NSTextField.m: In function `-[NSTextField textDidEndEditing:]':
NSTextField.m:597: warning: `NSDictionary' may not respond to
`-objectForKey:'
NSTextField.m:597: warning: (Messages without a matching method signature
NSTextField.m:597: warning: will be assumed to return `id' and accept
NSTextField.m:597: warning: `...' as arguments.)
   Compiling file NSTextView.m ...
   Compiling file NSToolbarItem.m ...

I did not notice them on linux, but I'll check again later today... I
wonder if they are harmful and/or shall be fixed and why they appear on
mingw...


I get similar things on OpenBSD/sparc with gcc-2.95:


NSMenuItem.m: In function `-[NSMenuItem setAttributedTitle:]':
NSMenuItem.m:514: warning: `NSAttributedString' does not respond to `string'

NSOpenGLContext.m: In function `+[NSOpenGLContext currentContext]':
NSOpenGLContext.m:69: warning: multiple declarations for method `currentContext'
../Headers/AppKit/NSOpenGL.h:104: warning: using `+(NSOpenGLContext 
*)currentContext'
../Headers/AppKit/NSGraphicsContext.h:193: warning: also found 
`+(NSGraphicsContext *)currentContext'

NSPageLayout.m: In function `-[GSPageLayoutController textDidBeginEditing:]':
NSPageLayout.m:917: warning: `NSNotification' does not respond to `description'
NSPageLayout.m: In function `-[GSPageLayoutController textDidEndEditing:]':
NSPageLayout.m:923: warning: `NSNotification' does not respond to `description'
NSPageLayout.m: In function `-[GSPageLayoutController textDidChange:]':
NSPageLayout.m:929: warning: `NSNotification' does not respond to `description'
NSPageLayout.m: In function `-[GSPageLayoutController controlTextDidChange:]':
NSPageLayout.m:935: warning: `NSNotification' does not respond to `description'


NSSegmentedCell.m: In function `-[NSSegmentedCell setSelected:forSegment:]':
NSSegmentedCell.m:368: warning: `NSSegmentItem' does not respond to `isEnabled'

NSSound.m: In function `+[NSSound initialize]':
NSSound.m:210: warning: passing arg 1 of `setVersion:' makes pointer from 
integer without a cast

NSTextField.m: In function `-[NSTextField textDidEndEditing:]':
NSTextField.m:597: warning: `NSDictionary' does not respond to `objectForKey:'


NSUserDefaultsController.m: In function `-[NSUserDefaultsController 
defaultsDidChange:]':
NSUserDefaultsController.m:299: warning: multiple declarations for method 
`defaultsDidChange:'
NSUserDefaultsController.m:52: warning: using 
`-(void)defaultsDidChange:(NSUserDefaults *)defaults'
NSUserDefaultsController.m:298: warning: also found 
`-(void)defaultsDidChange:(NSNotification *)notification'

NSViewController.m: In function `-[NSViewController initWithNibName:bundle:]':
NSViewController.m:44: warning: `NSBundle' does not respond to `retain'

GSServicesManager.m: In function `NSRegisterServicesProvider':
GSServicesManager.m:168: warning: multiple declarations for method `port'
/usr/local/include/Foundation/NSURL.h:79: warning: using `-(NSNumber *)port'
../Headers/Additions/GNUstepGUI/GSServicesManager.h:82: warning: also found 
`-(NSString *)port'
GSServicesManager.m:168: warning: passing arg 1 of 
`initWithReceivePort:sendPort:' from incompatible pointer type

GSLayoutManager.m: In function `-[GSLayoutManager 
insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:]':
GSLayoutManager.m:3147: warning: `GSLayoutManager' does not respond to 
`run_for_character_index:::'

GSStandardWindowDecorationView.m: In function 
`-[GSStandardWindowDecorationView(GSTheme) _themeDidActivate:]':
GSStandardWindowDecorationView.m:411: warning: `GSStandardWindowDecorationView' 
does not respond to `updateRects'


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to