From 264f058eaa25faf0e9c2b999705bbb01371db1c3 Mon Sep 17 00:00:00 2001 From: Charadon Date: Sun, 11 Sep 2022 13:19:15 -0400 Subject: Fixed unused variable compiler warning, albeit with a hacky solution. --- src/marathon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/marathon.c b/src/marathon.c index d7da799..c0507e2 100644 --- a/src/marathon.c +++ b/src/marathon.c @@ -24,6 +24,7 @@ void leaderboard_record(int Score) { /* Init Camera */ Camera2D MainCamera; + (void)MainCamera; /* Works-around unused variable compiler warning. */ MainCamera.target = (Vector2){0, 0}; MainCamera.offset = (Vector2){0, 0}; MainCamera.rotation = 0; @@ -112,6 +113,7 @@ void marathon_main() { MainCamera.rotation = 0; bool MarathonGoing = true; bool HasScored = false; + (void)HasScored; Vector2 MouseCurrentPosition = GetMousePosition(); while(MarathonGoing == true && GameGoing == true) { if (WindowShouldClose()) { /* Quit Game if the window is closed. */ -- cgit 1.4.1-2-gfad0