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()) {