From 51f14f799d579cfff243f1a90b0c608d127447d3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 21 Oct 2016 22:11:09 +0300 Subject: [PATCH] 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. --- tests/disclaim_bench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index 18c6e60b..c2a09aa2 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -136,10 +136,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; -- 2.40.0