From: John Ferlan Date: Thu, 11 Jul 2013 14:39:23 +0000 (-0400) Subject: storage_backend: Resolve Coverity issue X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ba3427a019308ce4ffa41a1ae54ad71036168d51;p=libvirt.git storage_backend: Resolve Coverity issue The switch statement in 'virStorageBackendCreateQemuImgOpts' used the for loop end condition 'VIR_STORAGE_FILE_FEATURE_LAST' as a possible value, but since that cannot happen Coverity spits out a DEADCODE message. Adding the Coverity tag just removes the Coverity message --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 5d06eb6e88..8d5880e449 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -663,6 +663,7 @@ virStorageBackendCreateQemuImgOpts(char **opts, } break; + /* coverity[dead_error_begin] */ case VIR_STORAGE_FILE_FEATURE_LAST: ; }