In my C code, I fprintf ing a "%lu" and gives uint32_t for the corresponding field. But when I compile with -Wall in GCC (version 4.2.4), I get the following warning:
writeresults.c:16: warning: format '%4lu' expects type 'long unsigned int', but argument 2 has type `uint32_t'
Not the same uint32_t and long unsigned int on 32-bit architectures? Can this warning be avoided without exception to the -Wall compiler -Wall or using the typecast method (and if so, how)?
Yes, I still use the 32-bit computer / arch / OS / compiler (too weak at the moment to provide a new 64-bit HW). Thanks!
source share