Commit 535da8b7 authored by Max Kellermann's avatar Max Kellermann

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.
parent eb71b5b8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment