summaryrefslogtreecommitdiffstats
path: root/server/tests/basic_event_loop.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@gmail.com>2011-03-21 13:38:19 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2011-04-08 12:14:19 +0200
commit3ba093a57e5283b3b630a30182cb770e62fc93a9 (patch)
tree1cfec1df2ad5a5bee7b200ebdb48ed66e9749e59 /server/tests/basic_event_loop.c
parentbb9b8a3c1330411288ae32b0419b816434e487fa (diff)
downloadspice-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.c2
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;