Re: [OT] gcc-warnings
it means that an integer value was assigned to pointer variable,
pointers are quite often some kinds of integers but not neccessarily so,
I guessfollowing code would produce such an error message:
int main(void)
{
void *ptr;
int i = 319;
ptr = i; /* problem here */
return 0;
}
to understand a most of these warnings you need C++ book, not gcc
manual...
erik
Daniel Reuter wrote:
>
> Hello there,
>
> I never quite understood the following warning message from gcc:
>
> sourcefile.c: linenumber: warning: assignment makes pointer from integer
> without a cast
>
> Unfortunately, I couldn't find a pointer on warning messages in the
> gcc-doc.
> Perhaps someone could enlighten me. Thanks.
> Regards,
> Daniel
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: