summaryrefslogtreecommitdiffstats
path: root/common/rop3.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-09-05 02:54:20 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:54 +0100
commit264ccc73f1dd95a36bc1ffa9b99a3741f6a97ecc (patch)
tree71905f98edb3218c05c75228199104cff50481bf /common/rop3.c
parent6130d4602d12399492200028e76f117b3d9466e9 (diff)
downloadspice-common-264ccc73f1dd95a36bc1ffa9b99a3741f6a97ecc.tar.gz
spice-common-264ccc73f1dd95a36bc1ffa9b99a3741f6a97ecc.tar.xz
spice-common-264ccc73f1dd95a36bc1ffa9b99a3741f6a97ecc.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 'common/rop3.c')
-rw-r--r--common/rop3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rop3.c b/common/rop3.c
index af872c1..12d9f11 100644
--- a/common/rop3.c
+++ b/common/rop3.c
@@ -31,7 +31,7 @@ typedef void (*rop3_with_pattern_handler_t)(pixman_image_t *d, pixman_image_t *s
typedef void (*rop3_with_color_handler_t)(pixman_image_t *d, pixman_image_t *s,
SpicePoint *src_pos, uint32_t rgb);
-typedef void (*rop3_test_handler_t)();
+typedef void (*rop3_test_handler_t)(void);
#define ROP3_NUM_OPS 256
@@ -56,7 +56,7 @@ static void default_rop3_withe_color_handler(pixman_image_t *d, pixman_image_t *
WARN("not implemented");
}
-static void default_rop3_test_handler()
+static void default_rop3_test_handler(void)
{
}
@@ -127,7 +127,7 @@ static void rop3_handle_c##depth##_##name(pixman_image_t *d, pixman_image_t *s,
} \
} \
\
-static void rop3_test##depth##_##name() \
+static void rop3_test##depth##_##name(void) \
{ \
uint8_t d = 0xaa; \
uint8_t s = 0xcc; \