Skip to content

Commit

Permalink
plugins/cache: Fixed "function decl. is not a prototype" warnings
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
i3abghany authored and stsquad committed Jul 23, 2021
1 parent 072c444 commit c2888a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/plugins/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static int icmp(gconstpointer a, gconstpointer b)
return insn_a->imisses < insn_b->imisses ? 1 : -1;
}

static void log_stats()
static void log_stats(void)
{
g_autoptr(GString) rep = g_string_new("");
g_string_append_printf(rep,
Expand All @@ -487,7 +487,7 @@ static void log_stats()
qemu_plugin_outs(rep->str);
}

static void log_top_insns()
static void log_top_insns(void)
{
int i;
GList *curr, *miss_insns;
Expand Down Expand Up @@ -536,7 +536,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
g_hash_table_destroy(miss_ht);
}

static void policy_init()
static void policy_init(void)
{
switch (policy) {
case LRU:
Expand Down

0 comments on commit c2888a6

Please sign in to comment.