From fd8c3dbdc4acd1541f5b21501aee3f2df53310f0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 6 Apr 2016 18:51:05 -0400 Subject: [PATCH] work around a couple compilation warnings --- app.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.cc b/app.cc index e96fdf2..e71c095 100644 --- a/app.cc +++ b/app.cc @@ -132,7 +132,7 @@ static void draw_cube() glUniform1i(uniforms.tex, 0); glUniformMatrix4fv(uniforms.projection, 1, GL_FALSE, &projection[0][0]); - for (int i = 0; i < sizeof(rotations) / sizeof(rotations[0]); i++) + for (unsigned int i = 0; i < sizeof(rotations) / sizeof(rotations[0]); i++) { if (rotations[i].counts > 0) { @@ -194,7 +194,7 @@ int main(int argc, char *argv[]) return 2; } - SDL_GLContext gl_context = SDL_GL_CreateContext(window); + (void)SDL_GL_CreateContext(window); if (gl3wInit()) {