summaryrefslogtreecommitdiff
path: root/src/sdl_fb.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-13 18:27:10 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-13 23:27:20 -0700
commit3e3032cfa044268cee76735823755db274025021 (patch)
treeead68726685be0e1b6fdccd5c78f132dfb093517 /src/sdl_fb.c
parent2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff)
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not be the case, maybe got lost somewhere along the line or messed up in configure.ac After forcing a build with -Wall -Werror, these showed up. Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/sdl_fb.c')
-rw-r--r--src/sdl_fb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c
index 2b0a605..d1e3cd5 100644
--- a/src/sdl_fb.c
+++ b/src/sdl_fb.c
@@ -196,7 +196,6 @@ static void sdl_fb_shutdown(til_fb_t *fb, void *context)
static int sdl_fb_acquire(til_fb_t *fb, void *context, void *page)
{
sdl_fb_t *c = context;
- sdl_fb_page_t *p = page;
c->window = SDL_CreateWindow("rototiller", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, c->width, c->height, c->flags);
if (!c->window)
@@ -254,7 +253,6 @@ static void * sdl_fb_page_alloc(til_fb_t *fb, void *context, til_fb_fragment_t *
static int sdl_fb_page_free(til_fb_t *fb, void *context, void *page)
{
- sdl_fb_t *c = context;
sdl_fb_page_t *p = page;
SDL_FreeSurface(p->surface);
© All Rights Reserved