fix compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@35757 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-10-28 12:32:35 +00:00
parent 8a6842b7b9
commit 9701a19501
5 changed files with 17 additions and 8 deletions

View file

@ -35,7 +35,10 @@
#define EC_BASE_CLASS EcCommand
#endif
@class EC_BASE_CLASS;
/* Create a fake interface to satisfy compiler ...
*/
@interface EC_BASE_CLASS : EcProcess
@end
void
inner_main()

View file

@ -35,7 +35,10 @@
#define EC_BASE_CLASS EcConsole
#endif
@class EC_BASE_CLASS;
/* Create a fake interface to satisfy compiler ...
*/
@interface EC_BASE_CLASS : EcProcess
@end
void
inner_main()

View file

@ -35,7 +35,10 @@
#define EC_BASE_CLASS EcControl
#endif
@class EC_BASE_CLASS;
/* Create a fake interface to satisfy compiler ...
*/
@interface EC_BASE_CLASS : EcProcess
@end
void
inner_main()

View file

@ -913,7 +913,6 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
for (i = 0; i < [a count]; i++)
{
EcClientI *c = [a objectAtIndex: i];
BOOL found = NO;
NS_DURING
{
@ -956,7 +955,7 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
}
}
}
if (found == NO)
if (NO == found)
{
m = [NSString stringWithFormat:
@"Nothing to shut down as '%@'\n", wd];

View file

@ -27,6 +27,7 @@
*/
#import <Foundation/NSDictionary.h>
#import <Foundation/NSInvocation.h>
#import <Foundation/NSLock.h>
#import <Foundation/NSMethodSignature.h>
@ -299,9 +300,9 @@ static NSLock *lock = nil;
- (BOOL) setCommand: (id)val forKey: (NSString*)key
{
NSDictionary *old = [self volatileDomainForName: @"EcCommand"];
NSDictionary *new = nil;
NSString *pre = [self defaultsPrefix];
NSDictionary *old = [self volatileDomainForName: @"EcCommand"];
NSMutableDictionary *new = nil;
NSString *pre = [self defaultsPrefix];
/* Make sure prefix is used if we have one set.
*/