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]

How to tell gcc that my int32 type is compatible with printf %d?


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


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