From: John Ferlan Date: Wed, 29 Oct 2014 13:25:56 +0000 (-0400) Subject: domain_conf: Resolve Coverity CHECKED_RETURN X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=025dc403db5f382e63f7cc13a25644c931301b73;p=libvirt.git domain_conf: Resolve Coverity CHECKED_RETURN Commit id '0d36a5d05' modified the code slightly, but removed the return value check thus causing Coverity to complain that this call was the only one where the return value wasn't checked. Since nothing was done previously if there was a failure, just use ignore_value here to pacify Coverity --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b0caa76ba9..fe9b986bb8 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -19237,7 +19237,7 @@ virDomainDefFormatInternal(virDomainDefPtr def, virDomainResourceDefFormat(buf, def->resource); if (def->sysinfo) - virSysinfoFormat(buf, def->sysinfo); + ignore_value(virSysinfoFormat(buf, def->sysinfo)); if (def->os.bootloader) { virBufferEscapeString(buf, "%s\n",