diff options
author | Christophe Fergeau <cfergeau@gmail.com> | 2011-03-21 13:38:19 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-08 12:14:19 +0200 |
commit | 3ba093a57e5283b3b630a30182cb770e62fc93a9 (patch) | |
tree | 1cfec1df2ad5a5bee7b200ebdb48ed66e9749e59 /server/tests/basic_event_loop.c | |
parent | bb9b8a3c1330411288ae32b0419b816434e487fa (diff) | |
download | spice-3ba093a57e5283b3b630a30182cb770e62fc93a9.tar.gz spice-3ba093a57e5283b3b630a30182cb770e62fc93a9.tar.xz spice-3ba093a57e5283b3b630a30182cb770e62fc93a9.zip |
tests: fix compilation with -Wall -Werror
When compiling spice with make CFLAGS="-g3 -ggdb3 -O0 -Wall -Werror",
the build broken because of a few unused variables/missing returns.
This patch fixes these warnings.
Diffstat (limited to 'server/tests/basic_event_loop.c')
-rw-r--r-- | server/tests/basic_event_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c index 7e8a1df4..2fe1b69c 100644 --- a/server/tests/basic_event_loop.c +++ b/server/tests/basic_event_loop.c @@ -319,7 +319,7 @@ void basic_event_loop_mainloop(void) if ((next_timer = get_next_timer()) != NULL) { calc_next_timeout(next_timer, &next_timer_timeout); timeout = &next_timer_timeout; - DPRINTF(1, "timeout of %d.%06d", + DPRINTF(1, "timeout of %zd.%06zd", timeout->tv_sec, timeout->tv_usec); } else { timeout = NULL; |