diff options
author | Ran Benita <ran@unusedvar.com> | 2019-12-28 14:11:27 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-12-28 14:13:52 +0200 |
commit | d1e39c111ed9b1042f7e22ebb7379a99d44730a4 (patch) | |
tree | c741523d16616feb0a16f5ec894671818c15442d /bench/key-proc.c | |
parent | da4a90c13e03d5a8684c66e7e8e69b174af822a0 (diff) | |
download | xorg-lib-libxkbcommon-d1e39c111ed9b1042f7e22ebb7379a99d44730a4.tar.gz |
test/atom: use correct format specifier for size_t
From MSVC:
test\atom.c(98): note: consider using '%zu' in the format string
test\atom.c(98): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
test\atom.c(100): note: consider using '%zu' in the format string
test\atom.c(100): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
test\atom.c(114): note: consider using '%zu' in the format string
test\atom.c(114): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
test\atom.c(128): note: consider using '%zu' in the format string
test\atom.c(128): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
test\atom.c(130): note: consider using '%zu' in the format string
test\atom.c(130): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
test\atom.c(137): note: consider using '%zu' in the format string
test\atom.c(137): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'size_t'
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'bench/key-proc.c')
-rw-r--r-- | bench/key-proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/key-proc.c b/bench/key-proc.c index cee3dfa..1d29243 100644 --- a/bench/key-proc.c +++ b/bench/key-proc.c @@ -75,7 +75,7 @@ main(void) xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL); xkb_context_set_log_verbosity(ctx, 0); - srand(time(NULL)); + srand((unsigned) time(NULL)); bench_start(&bench); bench_key_proc(state); |