mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
libxl: handle missing switch enum cases
Cast away enum type for libxl scheduler constants since we don't want to cover all of them and don't want build to break when new ones are added. Reviewed-by: John Ferlan <jferlan@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
3b558c6b04
commit
072579cf13
@ -4497,7 +4497,7 @@ libxlDomainGetSchedulerType(virDomainPtr dom, int *nparams)
|
||||
|
||||
if (nparams)
|
||||
*nparams = 0;
|
||||
switch (sched_id) {
|
||||
switch ((int)sched_id) {
|
||||
case LIBXL_SCHEDULER_SEDF:
|
||||
name = "sedf";
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user