On 07/25/2014 10:59 AM, Peter Krempa wrote:
Use correct type in the switch and handle all sound card models in it
so
that the compliler tracks additions.
*compiler
@@ -4712,6 +4706,15 @@ qemuBuildSoundDevStr(virDomainDefPtr def,
goto error;
}
break;
+ case VIR_DOMAIN_SOUND_MODEL_SB16:
+ model = "sb16";
+ break;
+ case VIR_DOMAIN_SOUND_MODEL_PCSPK: /* pc-speaker is handled separately */
Did you mean to report an error for PC speaker too?
+ case VIR_DOMAIN_SOUND_MODEL_LAST:
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("sound card model '%s' is not supported by
qemu"),
+ virDomainSoundModelTypeToString(sound->model));
Jan