Discussion:
typecast warnings
(too old to reply)
Jilla Bejan
2004-02-04 15:39:07 UTC
Permalink
HI
I keep getting cast warning like the ones below:

initialization makes pointer from integer without cast

passing argument 2 of clauseStatus makes integer from pointer without cast

What do these warnings mean and how can i solve it?
Thanks
Bejan
Alexander Smith
2004-02-04 17:06:27 UTC
Permalink
(Scroll down.)
Post by Jilla Bejan
HI
initialization makes pointer from integer without cast
This means you're doing something like the following:

int a;
int *b;
....
b = a; /* b is a pointer, a is an integer */
Post by Jilla Bejan
passing argument 2 of clauseStatus makes integer from pointer without cast
This is the result of something similar. The second parameter to
clauseStatus is 'int clauseIdx'. gcc is complaining that you're trying to
pass in a pointer instead. Maybe you're trying to pass in some kind of
Clause*? In any case, the parameter is an integer, so what you pass in
should be an integer.
Post by Jilla Bejan
What do these warnings mean and how can i solve it?
Thanks
Bejan
Alexander

Loading...