[Mesa-dev] [PATCH kmscube] drm-common.h: forward-declare needed structs

Eric Engestrom eric.engestrom at imgtec.com
Mon Mar 13 17:14:10 UTC 2017


drm-common.h:63:49: warning: ‘struct egl’ declared inside parameter list will not be
visible outside of this definition or declaration
  int (*run)(const struct gbm *gbm, const struct egl *egl);
                                                 ^~~
drm-common.h:63:26: warning: ‘struct gbm’ declared inside parameter list will not be
visible outside of this definition or declaration
  int (*run)(const struct gbm *gbm, const struct egl *egl);
                          ^~~

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

diff --git a/drm-common.h b/drm-common.h
index f56d07b..53af2cf 100644
--- a/drm-common.h
+++ b/drm-common.h
@@ -27,6 +27,9 @@
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 
+struct gbm;
+struct egl;
+
 struct plane {
 	drmModePlane *plane;
 	drmModeObjectProperties *props;
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list