diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-09-05 02:54:20 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-09-05 07:52:20 +0200 |
commit | 011266555a78e000a69caf9c3009f71caa9f7dc2 (patch) | |
tree | 4e6684bc3b378bf131b55347da39bf812459564e /server/tests/test_display_base.c | |
parent | 7e1c773325c6f18af7b135dc2ee2b799801c2f57 (diff) | |
download | spice-011266555a78e000a69caf9c3009f71caa9f7dc2.tar.gz spice-011266555a78e000a69caf9c3009f71caa9f7dc2.tar.xz spice-011266555a78e000a69caf9c3009f71caa9f7dc2.zip |
server: fix function prototypes
Several functions in server/ were not specifying an argument list,
ie they were declared as void foo(); When compiling with
-Wstrict-prototypes, this leads to:
test_playback.c:93:5: erreur: function declaration isn’t a prototype
[-Werror=strict-prototypes]
Diffstat (limited to 'server/tests/test_display_base.c')
-rw-r--r-- | server/tests/test_display_base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index a174d876..81f942bc 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -324,7 +324,7 @@ static void push_command(QXLCommandExt *ext) commands_end++; } -static struct QXLCommandExt *get_simple_command() +static struct QXLCommandExt *get_simple_command(void) { struct QXLCommandExt *ret = commands[commands_start%COMMANDS_SIZE]; ASSERT(commands_start < commands_end); @@ -332,7 +332,7 @@ static struct QXLCommandExt *get_simple_command() return ret; } -static int num_commands() +static int num_commands(void) { return commands_end - commands_start; } @@ -350,7 +350,7 @@ static int get_command(QXLInstance *qin, struct QXLCommandExt *ext) static int *simple_commands = NULL; static int num_simple_commands = 0; -static void produce_command() +static void produce_command(void) { static int target_surface = 0; static int cmd_index = 0; @@ -410,7 +410,7 @@ static int req_cmd_notification(QXLInstance *qin) return TRUE; } -static void do_wakeup() +static void do_wakeup(void *opaque) { int notify; cursor_notify = NOTIFY_CURSOR_BATCH; |