mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 21:47:16 +03:00
virDomainFormatSchedDef: Initialize @priority
Older gcc fails to see that the variable is set iff @hasPriority == true in which case the former is set a value. Initialize the value while declaring it to make the compiler shut up. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ea913d185d
commit
73b70b403d
@ -21472,7 +21472,7 @@ virDomainFormatSchedDef(virDomainDefPtr def,
|
||||
virBitmapPtr currentMap = NULL;
|
||||
ssize_t nextprio;
|
||||
bool hasPriority = false;
|
||||
int priority;
|
||||
int priority = 0;
|
||||
|
||||
switch ((virProcessSchedPolicy) i) {
|
||||
case VIR_PROC_POLICY_NONE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user