This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
warning for typedef'ed type
- To: gcc at gcc dot gnu dot org
- Subject: warning for typedef'ed type
- From: Lynn Winebarger <owinebar at free-expression dot org>
- Date: Sat, 6 Nov 1999 19:54:06 -0500 (EST)
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