From 0ca8f201dde179ed19412b734fecde2d288ff115 Mon Sep 17 00:00:00 2001 From: TotalCaesar659 Date: Mon, 10 Apr 2017 23:22:52 +0300 Subject: Fixed compile warning in benchmark.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was compile warning in benchmark.c: Scanning dependencies of target benchmark [ 48%] Building C object CMakeFiles/benchmark.dir/modules/benchmark.c.o /home/maxpayne/hardinfo/modules/benchmark.c: In function ‘get_benchmark_results’: /home/maxpayne/hardinfo/modules/benchmark.c:565:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] gchar *result = g_strdup_printf("[param]\n" ^ [ 50%] Building C object CMakeFiles/benchmark.dir/modules/benchmark/blowfish.c.o --- modules/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/benchmark.c b/modules/benchmark.c index e64005d1..94997df8 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -566,7 +566,7 @@ static gchar *get_benchmark_results() "machine=%s\n" "machineclock=%s\n" "machineram=%s\n" - "nbenchmarks=%d\n", + "nbenchmarks=%zu\n", machine, machineclock, machineram, -- cgit v1.2.3