# HG changeset patch # User Volker Grabsch # Date 1273829812 -7200 # Node ID a57c09f1b3f2ee25800818579fd94aca804eb3dd # Parent a8381b9df70c3a605cb6e33e8937e50280df9394 avoid warnings in the test program of package gtkglext diff -r a8381b9df70c -r a57c09f1b3f2 src/gtkglext-test.c --- 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,