mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 21:28:50 +00:00
t/common: Fix warning
This commit is contained in:
parent
19302a5d21
commit
65d88f00aa
|
@ -155,9 +155,9 @@ lighthouse_slam_track(struct u_system_devices *usysd)
|
||||||
{
|
{
|
||||||
struct xrt_slam_sinks *sinks = NULL;
|
struct xrt_slam_sinks *sinks = NULL;
|
||||||
|
|
||||||
|
#ifdef XRT_FEATURE_SLAM
|
||||||
struct vive_device *d = (struct vive_device *)usysd->base.roles.head;
|
struct vive_device *d = (struct vive_device *)usysd->base.roles.head;
|
||||||
|
|
||||||
#ifdef XRT_FEATURE_SLAM
|
|
||||||
int create_status = t_slam_create(&usysd->xfctx, NULL, &d->tracking.slam, &sinks);
|
int create_status = t_slam_create(&usysd->xfctx, NULL, &d->tracking.slam, &sinks);
|
||||||
if (create_status != 0) {
|
if (create_status != 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue