From: Ivan Maidanski Date: Fri, 21 Oct 2016 19:11:09 +0000 (+0300) Subject: Fix 'ISO C90 does not support %lf, %lg gnu_printf formats' GCC warnings X-Git-Tag: v7.4.6~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5d842b5c0ca1d3ea7ad2e38708c2e7eb9523f67;p=gc Fix 'ISO C90 does not support %lf, %lg gnu_printf formats' GCC warnings * tests/disclaim_bench.c (main): Replace "%lf" printf format specifier to "%f" one, and "%lg" one to "%g" one. --- diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index fc1b2ce3..0d418131 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -135,10 +135,10 @@ int main(int argc, char **argv) # endif if (model < 2 && free_count > 0) - printf("%20s: %12.4lf %12lg %12lg\n", model_str[model], + printf("%20s: %12.4f %12g %12g\n", model_str[model], free_count/(double)ALLOC_CNT, t, t/free_count); else - printf("%20s: %12.4lf %12lg %12s\n", + printf("%20s: %12.4f %12g %12s\n", model_str[model], 0.0, t, "N/A"); } return 0;