[Mesa-dev] [PATCH v2] gallium-egl: Fix compiler warning due to mismatched prototype
Ander Conselvan de Oliveira
ander.conselvan.de.oliveira at intel.com
Fri Jul 19 01:16:23 PDT 2013
common/native_wayland_drm_bufmgr.c: In function 'wayland_drm_bufmgr_create':
common/native_wayland_drm_bufmgr.c:204:30: warning: assignment from incompatible pointer type [enabled by default]
---
src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h b/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h
index eb324bf..b879ca2 100644
--- a/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h
+++ b/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h
@@ -25,6 +25,8 @@
#ifndef _NATIVE_WAYLAND_BUFMGR_H_
#define _NATIVE_WAYLAND_BUFMGR_H_
+#include "EGL/egl.h"
+
struct native_display;
struct wl_display;
struct wl_resource;
@@ -41,9 +43,9 @@ struct native_display_wayland_bufmgr {
struct wl_resource *buffer);
- boolean (*query_buffer)(struct native_display *ndpy,
- struct wl_resource *buffer,
- int attribute, int *value);
+ EGLBoolean (*query_buffer)(struct native_display *ndpy,
+ struct wl_resource *buffer,
+ EGLint attribute, EGLint *value);
};
#endif /* _NATIVE_WAYLAND_BUFMGR_H_ */
--
1.8.1.2
More information about the mesa-dev
mailing list