Incompatible integer to pointer conversion assigning to ‘int *’ from ‘int’

02.01.2015

I got this warning message today while working on my iOS app:

Incompatible integer to pointer conversion assigning to ‘int *’ from ‘int’

Looked it up on Stack Overflow, and apparently primitive types don’t need the asterisk which indicates that it is a pointer to an object.

Sources

http://stackoverflow.com/questions/5293406/another-warning-question-incompatible-integer-to-pointer-conversion-assigning