From 4f607caba02f45316160029b4ba3f10d6f7799b8 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 2 Nov 2021 17:26:48 +0100 Subject: [PATCH] virpcivpdtest: Declare variables at multiple lines In testPCIVPDResourceCustomCompareIndex() there are two variables declared at one line. They are both g_autoptr() decorated which makes it worse, because coccinelle fails to parse that. Signed-off-by: Michal Privoznik Reviewed-by: Tim Wiederhake --- tests/virpcivpdtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/virpcivpdtest.c b/tests/virpcivpdtest.c index a9405f9427..add1c74c04 100644 --- a/tests/virpcivpdtest.c +++ b/tests/virpcivpdtest.c @@ -178,7 +178,8 @@ testPCIVPDResourceBasic(const void *data G_GNUC_UNUSED) static int testPCIVPDResourceCustomCompareIndex(const void *data G_GNUC_UNUSED) { - g_autoptr(virPCIVPDResourceCustom) a = NULL, b = NULL; + g_autoptr(virPCIVPDResourceCustom) a = NULL; + g_autoptr(virPCIVPDResourceCustom) b = NULL; /* Both are NULL */ if (!virPCIVPDResourceCustomCompareIndex(a, b))