35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 77d9ab03ca20e683be4c40ccc879e201b538f7e5 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
|
|
Date: Fri, 26 Mar 2021 17:37:53 +0100
|
|
Subject: [PATCH] Guard local variable info only used with glamor
|
|
|
|
Fixes compiler warning with glamor disabled:
|
|
|
|
radeon_dri2.c: In function 'radeon_dri2_exchange_buffers':
|
|
radeon_dri2.c:732:19: error: unused variable 'info' [-Werror=unused-variable]
|
|
RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
|
|
^~~~
|
|
---
|
|
src/radeon_dri2.c | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
|
|
index 66a223d8..17983779 100644
|
|
--- a/src/radeon_dri2.c
|
|
+++ b/src/radeon_dri2.c
|
|
@@ -728,8 +728,9 @@ radeon_dri2_exchange_buffers(DrawablePtr draw, DRI2BufferPtr front, DRI2BufferPt
|
|
{
|
|
struct dri2_buffer_priv *front_priv = front->driverPrivate;
|
|
struct dri2_buffer_priv *back_priv = back->driverPrivate;
|
|
- ScreenPtr screen = draw->pScreen;
|
|
- RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
|
|
+#ifdef USE_GLAMOR
|
|
+ RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(draw->pScreen));
|
|
+#endif
|
|
RegionRec region;
|
|
int tmp;
|
|
|
|
--
|
|
GitLab
|
|
|