gcc format warnings and 64 bits...

Jeremy Allison jallison at cthulhu.engr.sgi.com
Wed Sep 2 20:13:59 GMT 1998


Hmmm. I've run into an anoying problem with gcc
when adding the 64 bit file offset code into Samba.

We currently turn on format warnings for Debug1
and friends using the 

__attribute__ ((format (printf, 1, 2)))

definition for gcc compiles. However, when
printing a 64 bit long long size, you need
to use the format "%lld" - which gcc complains
bitterly about.

Any good ideas on how to keep the format warnings
but allow printing of 64 bit ints ?

Cheers,

	Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list