The virDomainCapsEnumFormat() function does not return anything but zero and none of its callers is interested in the failure anyways. Switch its return type from integer to void. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- src/conf/domain_capabilities.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index b464298003..01714e2270 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -263,7 +263,7 @@ virDomainCapsEnumClear(virDomainCapsEnum *capsEnum) } -static int +static void virDomainCapsEnumFormat(virBuffer *buf, const virDomainCapsEnum *capsEnum, const char *capsEnumName, @@ -274,7 +274,7 @@ virDomainCapsEnumFormat(virBuffer *buf, size_t i; if (!capsEnum->report) - return 0; + return; virBufferAsprintf(&attrBuf, " name='%s'", capsEnumName); @@ -289,7 +289,6 @@ virDomainCapsEnumFormat(virBuffer *buf, } virXMLFormatElement(buf, "enum", &attrBuf, &childBuf); - return 0; } -- 2.38.2