misc: Silence unused warnings on release builds

This commit is contained in:
Mateo de Mayo 2022-05-22 15:55:31 -03:00
parent d3a0f10acb
commit 9281cb1d16
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View 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;