discuss-gnustep
[Top][All Lists]
Advanced

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

Re: a little further on Darwin


From: Fred Kiefer
Subject: Re: a little further on Darwin
Date: Thu, 10 Jun 2004 11:33:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114

Yves de Champlain wrote:
GNUMail is halfway done

I found out I had quite an old version of Gorm ... 0.7.6 goes very well.

Now it is Project-Center, I'm not sure about this

gcc PCDataSource.m -c \
-MMD -MP -Wall -Werror -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-common -DGSWARN -DGSDIAGNOSE -O2 -fno-strict-aliasing -fgnu-runtime -Wall -Werror -fconstant-string-class=NSConstantString -I.. -I../PCLib -I. -I/usr/local/GNUstep/System/Library/Headers/gnustep/ -I/usr/local/GNUstep/Local/Library/Headers/ -I/usr/local/GNUstep/System/Library/Headers/ \
       -o shared_obj/PCDataSource.o
PCDataSource.m: In function `-[PCDataSource tableView:objectValueForTableColumn:row:]':
PCDataSource.m:95: warning: multiple methods named `-objectForKey:'  found
/usr/local/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:71: warning: using `-(id)objectForKey:(id)aKey' /usr/local/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h: 158: warning: also found `-(id)objectForKey:(NSString *)defaultName' PCDataSource.m: In function `-[PCDataSource tableView:setObjectValue:forTableColumn:row:]': PCDataSource.m:105: warning: multiple methods named `-setObject:forKey:' found /usr/local/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:90: warning: using `-(void)setObject:(id)anObject forKey:(id)aKey' /usr/local/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h: 163: warning: also found `-(void)setObject:(id)value forKey:(NSString *)defaultName'
make[2]: *** [shared_obj/PCDataSource.o] Error 1
make[1]: *** [libProjectCenter.all.library.variables] Error 2
make: *** [internal-all] Error 2

I see warnings but where is the error ?


A long time ago ProjectCenter used to treat all compiler warnings as errors, I changed this last September. If your ProjectCenter code is older than this, you may just update it. To make this very clear: The -Werror flag is a valueable tool during development, but should never be put in released makefiles, as you never can tell which warnings a different version of the compiler may give.

Fred




reply via email to

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