Skip to content
Snippets Groups Projects
Commit 918b7ea4 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

st/oxr: Silence warning

parent ab275a62
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,11 @@ oxr_system_get_properties(struct oxr_logger *log, ...@@ -125,7 +125,11 @@ oxr_system_get_properties(struct oxr_logger *log,
properties->systemId = sys->systemId; properties->systemId = sys->systemId;
properties->graphicsProperties.maxViewCount = 2; properties->graphicsProperties.maxViewCount = 2;
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE, "Monado: %s", sys->device->name); // Needed to silence the warnings.
const char *name = sys->device->name;
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE, "Monado: %s",
name);
/*! /*!
* @todo conforming implementations must support at * @todo conforming implementations must support at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment