Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Incompatible pointer type

Name: Anonymous 2009-06-09 18:31

Why does gcc bitch about incompatible pointer types?
A variable int number;
A function func(int *number);
And a function call like this func(&number);

Compiles fine, and works fine. But when I change the type, for example to uint16_t number; func(uint16_t *number); gcc throws a warning about incompatible pointer type.

Does gcc hate me?

Name: Anonymous 2009-06-09 21:16

>>4
I cry'd.

You know, I never really believed that ''Bjarne is a troll´´ thing.  Not until today.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List