mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
misc: Silence unused warnings on release builds
This commit is contained in:
parent
d3a0f10acb
commit
9281cb1d16
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue