Fix new gcc 4.6 warnings

simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable]

etc.
This commit is contained in:
Kristian Høgsberg 2011-01-25 15:16:01 -05:00
parent 8335568d07
commit 00439617f3
7 changed files with 9 additions and 24 deletions

View file

@ -153,7 +153,6 @@ create_shader(struct window *window, const char *source, GLenum shader_type)
static void
init_gl(struct window *window)
{
GLfloat ar;
GLuint frag, vert;
GLint status;
@ -163,7 +162,6 @@ init_gl(struct window *window)
glGenRenderbuffers(1, &window->gl.color_rbo);
glViewport(0, 0, window->geometry.width, window->geometry.height);
ar = (GLfloat)window->geometry.width / (GLfloat)window->geometry.height;
frag = create_shader(window, frag_shader_text, GL_FRAGMENT_SHADER);
vert = create_shader(window, vert_shader_text, GL_VERTEX_SHADER);