Commit d66cd054 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

st/oxr: Fix warnings during release builds

parent 5beaba9c
Pipeline #51069 failed with stages
in 1 minute and 5 seconds
......@@ -114,7 +114,7 @@ oxr_event_push_XrEventDataSessionStateChanged(struct oxr_logger *log,
{
struct oxr_instance *inst = sess->sys->inst;
XrEventDataSessionStateChanged *changed;
struct oxr_event *event;
struct oxr_event *event = NULL;
ALLOC(log, inst, &event, &changed);
......
......@@ -243,7 +243,7 @@ oxr_source_get_pose_input(struct oxr_logger* log,
const struct oxr_sub_paths* sub_paths,
struct oxr_source_input** out_input)
{
struct oxr_source* src;
struct oxr_source* src = NULL;
oxr_session_get_source(sess, act_key, &src);
......
......@@ -145,7 +145,7 @@ oxr_path_get_or_create(struct oxr_logger *log,
XrPath *out_path)
{
struct u_hashset_item *item;
struct oxr_path *path;
struct oxr_path *path = NULL;
XrResult ret;
int h_ret;
......
......@@ -601,6 +601,7 @@ oxr_session_create(struct oxr_logger *log,
XrResult cleanup_result =
oxr_handle_destroy(log, &sess->handle);
assert(cleanup_result == XR_SUCCESS);
(void)cleanup_result;
return ret;
}
......
......@@ -183,8 +183,8 @@ oxr_system_get_properties(struct oxr_logger *log,
// Needed to silence the warnings.
const char *name = sys->head->name;
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE, "Monado: %s",
name);
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE, "Monado: %*.s",
247, name);
/*!
* @todo conforming implementations must support at
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment