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:
Antonio Ospite 2022-03-14 13:41:22 +01:00 committed by Jakob Bornecrantz
parent 112f02e0a9
commit 37852ffa65

View file

@ -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;
} }
} }