mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
Fix a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30199 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ab3613f0c2
commit
ce2d3fb811
3 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* EOAccess/EOEntity.m: Use '||' instead of '|'.
|
||||
* Tools/eoutil.m: Implement -lossyASCIIString.
|
||||
|
||||
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* EOControl/EOMutableKnownKeyDictionary.h,
|
||||
|
|
|
@ -1274,7 +1274,7 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
|
|||
{
|
||||
//OK
|
||||
NSAssert3(!_attributesToFetch
|
||||
| [_attributesToFetch isKindOfClass: [NSArray class]],
|
||||
|| [_attributesToFetch isKindOfClass: [NSArray class]],
|
||||
@"entity %@ attributesToFetch %p is not an NSArray but a %@",
|
||||
[self name],
|
||||
_attributesToFetch,
|
||||
|
|
|
@ -82,8 +82,12 @@ RCS_ID("$Id$")
|
|||
|
||||
- (NSString *) lossyASCIIString
|
||||
{
|
||||
#warning TODO: implement lossyASCIIString
|
||||
return self;
|
||||
NSData *d;
|
||||
|
||||
d = [self dataUsingEncoding: NSASCIIStringEncoding
|
||||
allowLossyConversion: YES];
|
||||
return [[[NSString alloc] initWithData: d
|
||||
encoding: NSASCIIStringEncoding] autorelease];
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -424,7 +428,6 @@ dump(NSArray *arguments)
|
|||
}
|
||||
else if ([anArg isEqualToString: @"-ascii"])
|
||||
{
|
||||
#warning TODO: ascii option is currently not used
|
||||
if (convertsNonASCII)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"More than one occurence of parameter '-ascii'"];
|
||||
|
|
Loading…
Reference in a new issue