st/p: Fix warnings when building without OpenCV

This commit is contained in:
Ryan Pavlik 2020-05-19 17:13:26 -05:00
parent 98d11709fb
commit 0f7832f2c8

View file

@ -225,9 +225,9 @@ p_factory_create_tracked_psmv(struct xrt_tracking_factory *xfact,
struct xrt_device *xdev,
struct xrt_tracked_psmv **out_xtmv)
{
#ifdef XRT_HAVE_OPENCV
struct p_factory *fact = p_factory(xfact);
#ifdef XRT_HAVE_OPENCV
struct xrt_tracked_psmv *xtmv = NULL;
p_factory_ensure_frameserver(fact);
@ -256,9 +256,9 @@ p_factory_create_tracked_psvr(struct xrt_tracking_factory *xfact,
struct xrt_device *xdev,
struct xrt_tracked_psvr **out_xtvr)
{
#ifdef XRT_HAVE_OPENCV
struct p_factory *fact = p_factory(xfact);
#ifdef XRT_HAVE_OPENCV
struct xrt_tracked_psvr *xtvr = NULL;
p_factory_ensure_frameserver(fact);