summaryrefslogtreecommitdiff
path: root/gfx-iso/demos
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-08-29 20:10:33 -0700
committer3gg <3gg@shellblade.net>2024-08-29 20:10:33 -0700
commit4e545b237f0f306c21073bc646aa7fe00ed71136 (patch)
treef6ca048b3cbdcb898a48311838c6b54400215d94 /gfx-iso/demos
parent6347ee483182bf8c5d139d1110ce2c335af60e4f (diff)
Supress unused variable warnings.
Diffstat (limited to 'gfx-iso/demos')
-rw-r--r--gfx-iso/demos/checkerboard/checkerboard.c6
-rw-r--r--gfx-iso/demos/isomap/isomap.c5
2 files changed, 11 insertions, 0 deletions
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(
54 assert(state); 54 assert(state);
55 assert(iso); 55 assert(iso);
56 56
57 (void)argc;
58 (void)argv;
59
57 if (!isogfx_make_world( 60 if (!isogfx_make_world(
58 iso, &(WorldDesc){ 61 iso, &(WorldDesc){
59 .tile_width = TILE_WIDTH, 62 .tile_width = TILE_WIDTH,
@@ -80,6 +83,9 @@ static void update(IsoGfxAppState* state, IsoGfx* iso, double t, double dt) {
80 assert(state); 83 assert(state);
81 assert(iso); 84 assert(iso);
82 85
86 (void)t;
87 (void)dt;
88
83 double mouse_x, mouse_y; 89 double mouse_x, mouse_y;
84 gfx_app_get_mouse_position(&mouse_x, &mouse_y); 90 gfx_app_get_mouse_position(&mouse_x, &mouse_y);
85 91
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(
15 IsoGfxAppState* state, IsoGfx* iso, int argc, const char** argv) { 15 IsoGfxAppState* state, IsoGfx* iso, int argc, const char** argv) {
16 assert(state); 16 assert(state);
17 assert(iso); 17 assert(iso);
18 (void)argc;
19 (void)argv;
18 20
19 if (!isogfx_load_world(iso, "/home/jeanne/assets/tilemaps/demo1.tm")) { 21 if (!isogfx_load_world(iso, "/home/jeanne/assets/tilemaps/demo1.tm")) {
20 return false; 22 return false;
@@ -41,6 +43,9 @@ static void update(IsoGfxAppState* state, IsoGfx* iso, double t, double dt) {
41 assert(state); 43 assert(state);
42 assert(iso); 44 assert(iso);
43 45
46 (void)t;
47 (void)dt;
48
44 double mouse_x, mouse_y; 49 double mouse_x, mouse_y;
45 gfx_app_get_mouse_position(&mouse_x, &mouse_y); 50 gfx_app_get_mouse_position(&mouse_x, &mouse_y);
46 51