diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c index 37c5479b3..e0071cd53 100644 --- a/src/xrt/state_trackers/oxr/oxr_instance.c +++ b/src/xrt/state_trackers/oxr/oxr_instance.c @@ -355,7 +355,7 @@ oxr_instance_create(struct oxr_logger *log, void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD); if (mod) { pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI"); - int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&inst->rdoc_api); + XRT_MAYBE_UNUSED int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&inst->rdoc_api); assert(ret == 1); } #endif diff --git a/src/xrt/targets/gui/gui_sdl2_imgui.c b/src/xrt/targets/gui/gui_sdl2_imgui.c index a98eef598..67d47b94c 100644 --- a/src/xrt/targets/gui/gui_sdl2_imgui.c +++ b/src/xrt/targets/gui/gui_sdl2_imgui.c @@ -16,6 +16,7 @@ #include "ogl/ogl_api.h" #include "gui/gui_imgui.h" +#include "xrt/xrt_compiler.h" #include "gui_sdl2.h" @@ -55,7 +56,7 @@ gui_sdl2_imgui_loop(struct sdl2_program *p) ImGuiIO *io = igGetIO(); // Make window layout file "imgui.ini" live in config dir - int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); + XRT_MAYBE_UNUSED int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); assert(res > 0); io->IniFilename = p->layout_file; diff --git a/src/xrt/targets/openxr/oxr_sdl2_hack.c b/src/xrt/targets/openxr/oxr_sdl2_hack.c index 886b8c4be..a0a44b756 100644 --- a/src/xrt/targets/openxr/oxr_sdl2_hack.c +++ b/src/xrt/targets/openxr/oxr_sdl2_hack.c @@ -7,6 +7,7 @@ */ #include "util/u_file.h" +#include "xrt/xrt_compiler.h" #include "xrt/xrt_instance.h" #include "xrt/xrt_config_have.h" #include "xrt/xrt_config_drivers.h" @@ -145,7 +146,7 @@ sdl2_loop(struct sdl2_program *p) ImGuiIO *io = igGetIO(); // Make window layout file "imgui.ini" live in config dir - int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); + XRT_MAYBE_UNUSED int res = u_file_get_path_in_config_dir("imgui.ini", p->layout_file, sizeof(p->layout_file)); assert(res > 0); io->IniFilename = p->layout_file;