mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-02-03 20:30:35 +00:00
Ensure all no-args methods are declared (void) not ()
* common/quic.c, common/rop3.c, common/sw_canvas.c, gtk/spice-client-glib-usb-acl-helper.c: s/()/(void)/
This commit is contained in:
parent
75c9e2f679
commit
8e83269bba
@ -246,7 +246,7 @@ static const unsigned int tabrand_chaos[TABRAND_TABSIZE] = {
|
||||
0x81474925, 0xa8b6c7ad, 0xee5931de, 0xb2f8158d, 0x59fb7409, 0x2e3dfaed, 0x9af25a3f, 0xe1fed4d5,
|
||||
};
|
||||
|
||||
static unsigned int stabrand()
|
||||
static unsigned int stabrand(void)
|
||||
{
|
||||
//ASSERT( !(TABRAND_SEEDMASK & TABRAND_TABSIZE));
|
||||
//ASSERT( TABRAND_SEEDMASK + 1 == TABRAND_TABSIZE );
|
||||
@ -530,7 +530,7 @@ static int J[MELCSTATES] = {
|
||||
};
|
||||
|
||||
/* creates the bit counting look-up table. */
|
||||
static void init_zeroLUT()
|
||||
static void init_zeroLUT(void)
|
||||
{
|
||||
int i, j, k, l;
|
||||
|
||||
@ -1690,7 +1690,7 @@ void quic_destroy(QuicContext *quic)
|
||||
encoder->usr->free(encoder->usr, encoder);
|
||||
}
|
||||
|
||||
void quic_init()
|
||||
void quic_init(void)
|
||||
{
|
||||
if (!need_init) {
|
||||
return;
|
||||
|
||||
@ -38,7 +38,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
|
||||
|
||||
@ -63,7 +63,7 @@ static void default_rop3_withe_color_handler(pixman_image_t *d, pixman_image_t *
|
||||
WARN("not implemented 0x%x");
|
||||
}
|
||||
|
||||
static void default_rop3_test_handler()
|
||||
static void default_rop3_test_handler(void)
|
||||
{
|
||||
}
|
||||
|
||||
@ -134,7 +134,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; \
|
||||
@ -381,7 +381,7 @@ ROP3_HANDLERS(DPSoo, *src | *pat | *dest, 0xfe);
|
||||
rop3_test_handlers_32[index] = rop3_test32_##op; \
|
||||
rop3_test_handlers_16[index] = rop3_test16_##op;
|
||||
|
||||
void rop3_init()
|
||||
void rop3_init(void)
|
||||
{
|
||||
static int need_init = 1;
|
||||
int i;
|
||||
|
||||
@ -1278,7 +1278,7 @@ SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
|
||||
);
|
||||
}
|
||||
|
||||
void sw_canvas_init() //unsafe global function
|
||||
void sw_canvas_init(void) //unsafe global function
|
||||
{
|
||||
if (!need_init) {
|
||||
return;
|
||||
|
||||
@ -150,7 +150,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void cleanup()
|
||||
static void cleanup(void)
|
||||
{
|
||||
if (polkit_cancellable)
|
||||
g_cancellable_cancel(polkit_cancellable);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user