This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]