This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to tell gcc that my int32 type is compatible with printf %d?
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Subject: How to tell gcc that my int32 type is compatible with printf %d?
- From: "Neulinger, Nathan" <nneul at umr dot edu>
- Date: Tue, 5 Jun 2001 11:43:36 -0500
I've cleaning up warnings in an app that uses it's own int types for
platform compatability. It has a 'typedef int afs_int32', yet all the
printf/sprintf/etc. args are complaining:
ktime.c:463: warning: int format, afs_int32 arg (arg 5)
Is there any simple way to indicate to gcc (in a way that won't break
compatability with other c compilers) that afs_int32 is compatible so it
won't generate warning? (Other than putting (int) in front of every arg to
printf/etc.)
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216