From 4e545b237f0f306c21073bc646aa7fe00ed71136 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 29 Aug 2024 20:10:33 -0700 Subject: Supress unused variable warnings. --- gfx-iso/demos/checkerboard/checkerboard.c | 6 ++++++ gfx-iso/demos/isomap/isomap.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gfx-iso/demos/checkerboard/checkerboard.c b/gfx-iso/demos/checkerboard/checkerboard.c index 9730aea..e684bc3 100644 --- a/gfx-iso/demos/checkerboard/checkerboard.c +++ b/gfx-iso/demos/checkerboard/checkerboard.c @@ -54,6 +54,9 @@ static bool init( assert(state); assert(iso); + (void)argc; + (void)argv; + if (!isogfx_make_world( iso, &(WorldDesc){ .tile_width = TILE_WIDTH, @@ -80,6 +83,9 @@ static void update(IsoGfxAppState* state, IsoGfx* iso, double t, double dt) { assert(state); assert(iso); + (void)t; + (void)dt; + double mouse_x, mouse_y; gfx_app_get_mouse_position(&mouse_x, &mouse_y); diff --git a/gfx-iso/demos/isomap/isomap.c b/gfx-iso/demos/isomap/isomap.c index d204d28..5ab926c 100644 --- a/gfx-iso/demos/isomap/isomap.c +++ b/gfx-iso/demos/isomap/isomap.c @@ -15,6 +15,8 @@ static bool init( IsoGfxAppState* state, IsoGfx* iso, int argc, const char** argv) { assert(state); assert(iso); + (void)argc; + (void)argv; if (!isogfx_load_world(iso, "/home/jeanne/assets/tilemaps/demo1.tm")) { return false; @@ -41,6 +43,9 @@ static void update(IsoGfxAppState* state, IsoGfx* iso, double t, double dt) { assert(state); assert(iso); + (void)t; + (void)dt; + double mouse_x, mouse_y; gfx_app_get_mouse_position(&mouse_x, &mouse_y); -- cgit v1.2.3