提交 846cc14c 编写于 作者: R Roman Bogorodskiy

bhyve: fix bhyvexml2argvtest build with gcc

gcc5 reports an error like this:

bhyvexml2argvtest.c: In function 'testCompareXMLToArgvFiles':
bhyvexml2argvtest.c:24:18: error: variable 'vm' set but not used
[-Werror=unused-but-set-variable]
     virDomainObj vm;
                  ^
cc1: all warnings being treated as errors

Fix by dropping this variable.
上级 c49b9032
......@@ -21,7 +21,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
{
char *actualargv = NULL, *actualld = NULL, *actualdm = NULL;
virDomainDefPtr vmdef = NULL;
virDomainObj vm;
virCommandPtr cmd = NULL, ldcmd = NULL;
virConnectPtr conn;
int ret = -1;
......@@ -33,7 +32,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
VIR_DOMAIN_DEF_PARSE_INACTIVE)))
goto out;
vm.def = vmdef;
conn->privateData = &driver;
if (!(cmd = virBhyveProcessBuildBhyveCmd(conn, vmdef, false)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册