From f434de27bd2c265affad2fbcabce43c19336b0fd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 15 Apr 2021 17:35:45 +0100 Subject: [PATCH] st/gui: Fix warning (false positive) --- src/xrt/state_trackers/gui/gui_scene_tracking_overrides.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/gui/gui_scene_tracking_overrides.c b/src/xrt/state_trackers/gui/gui_scene_tracking_overrides.c index 904f96ed6..63caff4b6 100644 --- a/src/xrt/state_trackers/gui/gui_scene_tracking_overrides.c +++ b/src/xrt/state_trackers/gui/gui_scene_tracking_overrides.c @@ -212,7 +212,7 @@ scene_render(struct gui_scene *scene, struct gui_program *p) struct xrt_tracking_override *o = &ts->overrides[ts->editing_override]; igBegin("Tracker Device Offset", NULL, 0); - int target, tracker; + int target = 0, tracker = 0; if (get_indices(p, ts, o, &target, &tracker)) { igText("Editing %s [%s] <- %s [%s]", p->xdevs[target]->str, o->target_device_serial, p->xdevs[tracker]->str, o->tracker_device_serial);