From: Jørgen Lind Date: Tue, 3 May 2011 10:59:50 +0000 (+0200) Subject: Remove warnings X-Git-Tag: qt-v5.0.0-alpha1~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5a31e5cd7eec110066566ea36ab360b8858df12;p=profile%2Fivi%2Fqtwayland.git Remove warnings --- diff --git a/src/qt-compositor/hardware_integration/graphicshardwareintegration.h b/src/qt-compositor/hardware_integration/graphicshardwareintegration.h index 5824cd1..9ed793e 100644 --- a/src/qt-compositor/hardware_integration/graphicshardwareintegration.h +++ b/src/qt-compositor/hardware_integration/graphicshardwareintegration.h @@ -59,7 +59,7 @@ public: **/ virtual GLuint createTextureFromBuffer(struct wl_buffer *buffer) = 0; - virtual bool setDirectRenderSurface(WaylandSurface *surface) {return false;} + virtual bool setDirectRenderSurface(WaylandSurface *) {return false;} virtual bool postBuffer(struct wl_buffer *) {return false;} static GraphicsHardwareIntegration *createGraphicsHardwareIntegration(WaylandCompositor *compositor); diff --git a/src/qt-compositor/wayland_wrapper/wlshmbuffer.cpp b/src/qt-compositor/wayland_wrapper/wlshmbuffer.cpp index aca2ce3..66c2be5 100644 --- a/src/qt-compositor/wayland_wrapper/wlshmbuffer.cpp +++ b/src/qt-compositor/wayland_wrapper/wlshmbuffer.cpp @@ -109,12 +109,18 @@ struct wl_shm_callbacks ShmHandler::shm_callbacks = { void ShmHandler::buffer_created_callback(struct wl_buffer *buffer) { ShmBuffer *newBuffer = new ShmBuffer(buffer); + Q_UNUSED(newBuffer); } void ShmHandler::buffer_damaged_callback(struct wl_buffer *buffer, int32_t x, int32_t y, int32_t width, int32_t height) { + Q_UNUSED(buffer); + Q_UNUSED(x); + Q_UNUSED(y); + Q_UNUSED(width); + Q_UNUSED(height); fprintf(stderr,"damage_callback\n"); }