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/test_empty_success.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/test_empty_success.c')
-rw-r--r-- | server/tests/test_empty_success.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/test_empty_success.c b/server/tests/test_empty_success.c index e747e403..97aa7726 100644 --- a/server/tests/test_empty_success.c +++ b/server/tests/test_empty_success.c @@ -1,8 +1,10 @@ +#include <stdlib.h> #include <strings.h> #include <spice.h> SpiceTimer* timer_add(SpiceTimerFunc func, void *opaque) { + return NULL; } void timer_start(SpiceTimer *timer, uint32_t ms) @@ -19,6 +21,7 @@ void timer_remove(SpiceTimer *timer) SpiceWatch *watch_add(int fd, int event_mask, SpiceWatchFunc func, void *opaque) { + return NULL; } void watch_update_mask(SpiceWatch *watch, int event_mask) |