security: handle missing switch enum cases

Ensure all enum cases are listed in switch statements.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-02-14 09:43:59 +00:00
parent 6c84533f04
commit 46f83e5cba

View File

@ -82,6 +82,7 @@ virSecurityDriverPtr virSecurityDriverLookup(const char *name,
}
break;
case SECURITY_DRIVER_ERROR:
default:
return NULL;
}