CLang error (objective C): value stored during initialization is never read
- by Scott Pendleton
Foo *oFoo = [[[Foo alloc] init] autorelease];
This is how I was taught to program in Objective C, yet the CLang error checker complains that the initial value was never read. But oFoo is an object with properties. oFoo itself has no single value. The property values are what matter.
oFoo.PropertyA = 1;
oFoo.PropertyB = @"Hello, World."
Should…