mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: fix -Wreturn-type warnings
Add some missing returns pointed out by -Wreturn-type: ----------------------------------------------------------------------- [75/1571] Building C object src/xrt/auxiliary/CMakeFiles/aux_util.dir/util/u_config_json.c.o .../src/xrt/auxiliary/util/u_config_json.c: In function ‘u_gui_state_scene_to_string’: .../src/xrt/auxiliary/util/u_config_json.c:524:1: warning: control reaches end of non-void function [-Wreturn-type] 524 | } | ^ -----------------------------------------------------------------------
This commit is contained in:
parent
112f02e0a9
commit
37852ffa65
|
@ -519,7 +519,7 @@ u_gui_state_scene_to_string(enum u_gui_state_scene scene)
|
||||||
{
|
{
|
||||||
switch (scene) {
|
switch (scene) {
|
||||||
case GUI_STATE_SCENE_CALIBRATE: return "calibrate";
|
case GUI_STATE_SCENE_CALIBRATE: return "calibrate";
|
||||||
default: assert(false);
|
default: assert(false); return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue