volume: changed "default" to "DISABLED" in switch statement

Make gcc warn us if we add a new mixer type, and forget to add a new
"case" line.
This commit is contained in:
Max Kellermann 2009-05-28 23:39:51 +02:00
parent eb71b5b8a4
commit 535da8b797

View File

@ -190,9 +190,12 @@ int volume_level_get(void)
return software_volume_get();
case VOLUME_MIXER_TYPE_HARDWARE:
return hardware_volume_get();
default:
case VOLUME_MIXER_TYPE_DISABLED:
return -1;
}
/* unreachable */
assert(false);
return -1;
}