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]

warning for typedef'ed type



   I can't seem to find a way to force a warning if a function requires an
argument of a typedef'ed type and is given an argument of the original
type.  For example:

typedef int scm;
int f(scm a);

void foo()
{
   f(5);
}

   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?

Lynn



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