Another warning question: "Incompatible intiger to pointer conversion assigning to 'int *' from 'int'"
Posted
by
Preston
on Stack Overflow
See other posts from Stack Overflow
or by Preston
Published on 2011-03-14T00:03:16Z
Indexed on
2011/03/14
0:10 UTC
Read the original article
Hit count: 261
I have yet another pesky warning I would like gone. Basically, I have an int declared like this: @property (nonatomic, assign) int *myInt;
and set like this: myInt = 0;
. It is also synthesized in the implementation file. I am getting a warning on the line where I set the int's value and it says "Incompatible intiger to pointer conversion assigning to 'int *' from 'int'." What should I do to fix this?
© Stack Overflow or respective owner