Skip to content

Commit c2888a6

Browse files
i3abghanystsquad
authored andcommitted
plugins/cache: Fixed "function decl. is not a prototype" warnings
Signed-off-by: Mahmoud Mandour <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Message-Id: <[email protected]>
1 parent 072c444 commit c2888a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/plugins/cache.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ static int icmp(gconstpointer a, gconstpointer b)
469469
return insn_a->imisses < insn_b->imisses ? 1 : -1;
470470
}
471471

472-
static void log_stats()
472+
static void log_stats(void)
473473
{
474474
g_autoptr(GString) rep = g_string_new("");
475475
g_string_append_printf(rep,
@@ -487,7 +487,7 @@ static void log_stats()
487487
qemu_plugin_outs(rep->str);
488488
}
489489

490-
static void log_top_insns()
490+
static void log_top_insns(void)
491491
{
492492
int i;
493493
GList *curr, *miss_insns;
@@ -536,7 +536,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
536536
g_hash_table_destroy(miss_ht);
537537
}
538538

539-
static void policy_init()
539+
static void policy_init(void)
540540
{
541541
switch (policy) {
542542
case LRU:

0 commit comments

Comments
 (0)