Skip to content

Commit

Permalink
wayland: guard devices_are_equal completely
Browse files Browse the repository at this point in the history
Only used if we have drm. Avoids a -Wunused-function error.
  • Loading branch information
Dudemanguy committed Oct 17, 2024
1 parent 19f9daf commit dc86342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/out/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1985,18 +1985,18 @@ static void add_feedback(struct vo_wayland_feedback_pool *fback_pool,
}
}

#if HAVE_DRM
static bool devices_are_equal(dev_t a, dev_t b)
{
bool ret = false;
#if HAVE_DRM
drmDevice *deviceA, *deviceB;
if (!drmGetDeviceFromDevId(a, 0, &deviceA) && !drmGetDeviceFromDevId(b, 0, &deviceB))
ret = drmDevicesEqual(deviceA, deviceB);
drmFreeDevice(&deviceA);
drmFreeDevice(&deviceB);
#endif
return ret;
}
#endif

static void do_minimize(struct vo_wayland_state *wl)
{
Expand Down

0 comments on commit dc86342

Please sign in to comment.