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:
parent
eb71b5b8a4
commit
535da8b797
@ -190,9 +190,12 @@ int volume_level_get(void)
|
|||||||
return software_volume_get();
|
return software_volume_get();
|
||||||
case VOLUME_MIXER_TYPE_HARDWARE:
|
case VOLUME_MIXER_TYPE_HARDWARE:
|
||||||
return hardware_volume_get();
|
return hardware_volume_get();
|
||||||
default:
|
case VOLUME_MIXER_TYPE_DISABLED:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* unreachable */
|
||||||
|
assert(false);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user