From 4960cc3dcb847569923c70c24e571ecbc2dcc39b Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 25 Oct 2021 16:18:40 +0200 Subject: [PATCH] Fixed a few warnings --- src/render/SDL_render.c | 4 ++-- src/render/opengles/SDL_render_gles.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 96c064b07..1a0add99f 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -3456,8 +3456,8 @@ SDL_RenderCopyExF(SDL_Renderer * renderer, SDL_Texture * texture, float c_minx, c_miny, c_maxx, c_maxy; const float radian_angle = (float)((M_PI * angle) / 180.0); - const float s = SDL_sin(radian_angle); - const float c = SDL_cos(radian_angle); + const float s = SDL_sinf(radian_angle); + const float c = SDL_cosf(radian_angle); minu = (float) (real_srcrect.x) / (float) texture->w; minv = (float) (real_srcrect.y) / (float) texture->h; diff --git a/src/render/opengles/SDL_render_gles.c b/src/render/opengles/SDL_render_gles.c index 07ed44573..10f4e86eb 100644 --- a/src/render/opengles/SDL_render_gles.c +++ b/src/render/opengles/SDL_render_gles.c @@ -769,7 +769,6 @@ static int GLES_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertices, size_t vertsize) { GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata; - size_t i; if (GLES_ActivateRenderer(renderer) < 0) { return -1;