Skip to content

Commit

Permalink
Fixed compile warning in benchmark.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TotalCaesar659 authored and lpereira committed Apr 11, 2017
1 parent 70b0661 commit 0ca8f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/benchmark.c
Expand Up @@ -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,
Expand Down

0 comments on commit 0ca8f20

Please sign in to comment.