Clang catches the issue:
../../src/connect.c:532:26: error: unused variable 'domain'
[-Werror,-Wunused-variable]
g_autoptr(virDomain) domain = NULL;
^
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/connect.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/connect.c b/src/connect.c
index 6719e21..14a60dc 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -529,7 +529,6 @@ virtDBusConnectDomainSaveImageGetXMLDesc(GVariant *inArgs,
GError **error)
{
virtDBusConnect *connect = userData;
- g_autoptr(virDomain) domain = NULL;
const gchar *file;
guint flags;
g_autofree gchar *xml = NULL;
--
2.17.0