'differ in signedness' warnings with gcc 4
'differ in signedness' warnings with gcc 4
- Subject: 'differ in signedness' warnings with gcc 4
- From: Matt Gough <email@hidden>
- Date: Tue, 21 Jun 2005 14:42:01 +0100
I don't think the following should generate a warning, but I'll leave
to the language gods to decide for sure:
typedef NSDictionary DictionaryOfColors;
@interface foo {
}
-(DictionaryOfColors*) getColors;
@end
void SomeFunc(foo* foo1, foo* foo2)
{
DictionaryOfColors* colors1 = [foo1 getColors];
DictionaryOfColors* colors2 = [foo1 getColors];
if ([colors1 isEqualToDictionary:colors2])
{
...
}
}
warning: pointer targets in passing argument 1 of
'isEqualToDictionary:' differ in signedness
Matt Gough
Softchaos Limited
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden