work around a couple compilation warnings

This commit is contained in:
Josh Holtrop 2016-04-06 18:51:05 -04:00
parent d04ef0dd20
commit fd8c3dbdc4

4
app.cc
View File

@ -132,7 +132,7 @@ static void draw_cube()
glUniform1i(uniforms.tex, 0); glUniform1i(uniforms.tex, 0);
glUniformMatrix4fv(uniforms.projection, 1, GL_FALSE, &projection[0][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) if (rotations[i].counts > 0)
{ {
@ -194,7 +194,7 @@ int main(int argc, char *argv[])
return 2; return 2;
} }
SDL_GLContext gl_context = SDL_GL_CreateContext(window); (void)SDL_GL_CreateContext(window);
if (gl3wInit()) if (gl3wInit())
{ {