passing argument 1 from incompatible pointer type
- by Andrew
Why does this code...:
NSDictionary *testDictionary = [NSDictionary dictionaryWithObjectsAndKeys:kABOtherLabel, @"other", kABWorkLabel, @"work", nil];
throw this warning:
warning: passing argument 1 of 'dictionaryWithObjectsAndKeys' from incompatible pointer type
Incidentally, the code works as expected, but I don't like leaving warnings un-delt-with. I assume it doesn't like that I'm storing a constant in a dictionary. Well, where can I store it then? Should I just place (void *) before every constant?