From: John Ferlan Date: Thu, 2 Apr 2015 16:39:27 +0000 (-0400) Subject: storage: Remove default from switch in virStoragePoolSourceFindDuplicate X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=556a21f9fba47018ad9894e25b7a8e1ddbba882a;p=libvirt.git storage: Remove default from switch in virStoragePoolSourceFindDuplicate So that we can cover all the cases. --- diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index bb89bb7578..1fadff4955 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -2458,7 +2458,7 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn, virStoragePoolObjLock(pool); - switch (pool->def->type) { + switch ((virStoragePoolType)pool->def->type) { case VIR_STORAGE_POOL_DIR: if (STREQ(pool->def->target.path, def->target.path)) matchpool = pool; @@ -2544,7 +2544,12 @@ virStoragePoolSourceFindDuplicate(virConnectPtr conn, case VIR_STORAGE_POOL_DISK: matchpool = virStoragePoolSourceFindDuplicateDevices(pool, def); break; - default: + case VIR_STORAGE_POOL_MPATH: + case VIR_STORAGE_POOL_RBD: + case VIR_STORAGE_POOL_SHEEPDOG: + case VIR_STORAGE_POOL_GLUSTER: + case VIR_STORAGE_POOL_ZFS: + case VIR_STORAGE_POOL_LAST: break; } virStoragePoolObjUnlock(pool);