This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning for typedef'ed type
> In particular, I'm using guile's gh_ interface, and SCM (the type for
> scheme values) is just a long. I seem to be calling gh_cons with a
> regular int (not a valid SCM value, even though they have the same
> underlying type). Is there any way to force gcc to warn about where this
> happens?
No, gcc does not warn about this. If it would, typedefs would be
almost useless.
If you want to find the places where you pass an incorrect thing, make
scm a struct for a moment, and see what error messages you get.
Regards,
Martin