changeset 969:a57c09f1b3f2

avoid warnings in the test program of package gtkglext
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 14 May 2010 11:36:52 +0200
parents a8381b9df70c
children 446515393768
files src/gtkglext-test.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkglext-test.c	Fri May 14 11:36:21 2010 +0200
+++ b/src/gtkglext-test.c	Fri May 14 11:36:52 2010 +0200
@@ -10,6 +10,9 @@
     GdkGLContext *ctx = gtk_widget_get_gl_context(gl);
     GdkGLDrawable *drawable = gtk_widget_get_gl_drawable(gl);
 
+    (void)e;
+    (void)userData;
+
     gdk_gl_drawable_gl_begin(drawable, ctx);
 
     glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -29,6 +32,9 @@
     const guint width = gl->allocation.width;
     const guint height = gl->allocation.height;
 
+    (void)e;
+    (void)userData;
+
     glLoadIdentity();
     glViewport(0, 0, width, height);
     glOrtho(-3.5, 3.5, -3.5 * (GLfloat)height / (GLfloat)width,