The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: Silence unused warnings on release builds

+5 -3
+1 -1
src/xrt/state_trackers/oxr/oxr_instance.c
··· 355 355 void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD); 356 356 if (mod) { 357 357 pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI"); 358 - int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&inst->rdoc_api); 358 + XRT_MAYBE_UNUSED int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&inst->rdoc_api); 359 359 assert(ret == 1); 360 360 } 361 361 #endif
+2 -1
src/xrt/targets/gui/gui_sdl2_imgui.c
··· 16 16 17 17 #include "ogl/ogl_api.h" 18 18 #include "gui/gui_imgui.h" 19 + #include "xrt/xrt_compiler.h" 19 20 20 21 #include "gui_sdl2.h" 21 22 ··· 55 56 ImGuiIO *io = igGetIO(); 56 57 57 58 // Make window layout file "imgui.ini" live in config dir 58 - int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); 59 + XRT_MAYBE_UNUSED int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); 59 60 assert(res > 0); 60 61 io->IniFilename = p->layout_file; 61 62
+2 -1
src/xrt/targets/openxr/oxr_sdl2_hack.c
··· 7 7 */ 8 8 9 9 #include "util/u_file.h" 10 + #include "xrt/xrt_compiler.h" 10 11 #include "xrt/xrt_instance.h" 11 12 #include "xrt/xrt_config_have.h" 12 13 #include "xrt/xrt_config_drivers.h" ··· 145 146 ImGuiIO *io = igGetIO(); 146 147 147 148 // Make window layout file "imgui.ini" live in config dir 148 - int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); 149 + XRT_MAYBE_UNUSED int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); 149 150 assert(res > 0); 150 151 io->IniFilename = p->layout_file; 151 152