From: Ivan Maidanski Date: Thu, 13 Oct 2016 08:44:52 +0000 (+0300) Subject: Eliminate 'printf format specifier mismatch' compiler warning (tools) X-Git-Tag: v7.4.6~240 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce53b13fc8ab96e3a16a4d4d0be2d12b1ba98914;p=gc Eliminate 'printf format specifier mismatch' compiler warning (tools) * tools/setjmp_t.c (main): Use %lu (instead of %ld) printf format specifier for unsigned long value. --- diff --git a/tools/setjmp_t.c b/tools/setjmp_t.c index e66d7f60..328cd92f 100644 --- a/tools/setjmp_t.c +++ b/tools/setjmp_t.c @@ -90,7 +90,7 @@ int main(void) printf("Note that this may vary between machines of ostensibly\n"); printf("the same architecture (e.g. Sun 3/50s and 3/80s).\n"); printf("On many machines the value is not fixed.\n"); - printf("A good guess for ALIGNMENT on this machine is %ld.\n", + printf("A good guess for ALIGNMENT on this machine is %lu.\n", (unsigned long)((word)(&(a.a_b)) - (word)(&a))); printf("The following is a very dubious test of one root marking"