[Mesa-dev] [PATCH kmscube 7/7] drm-legacy.c: suppress 'unused parameter warnings

Eric Engestrom eric.engestrom at imgtec.com
Tue Mar 14 13:33:57 UTC 2017


Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 drm-legacy.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drm-legacy.c b/drm-legacy.c
index 2392a3d..8e49075 100644
--- a/drm-legacy.c
+++ b/drm-legacy.c
@@ -33,6 +33,9 @@ static struct drm drm;
 static void page_flip_handler(int fd, unsigned int frame,
 		  unsigned int sec, unsigned int usec, void *data)
 {
+	/* suppress 'unused parameter' warnings */
+	(void)fd, (void)frame, (void)sec, (void)usec;
+
 	int *waiting_for_flip = data;
 	*waiting_for_flip = 0;
 }
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list