about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-09-11 13:19:15 -0400
committerCharadon <dev@iotib.net>2022-09-11 13:19:15 -0400
commit264f058eaa25faf0e9c2b999705bbb01371db1c3 (patch)
tree221eb6871cc09a00a8319c782ed77b59759c88f9 /src
parent8307afbc91240a0610c4efd60402b9e6bc600ef3 (diff)
downloadPong-C-264f058eaa25faf0e9c2b999705bbb01371db1c3.tar.gz
Fixed unused variable compiler warning, albeit with a hacky solution.
Diffstat (limited to 'src')
-rw-r--r--src/marathon.c2
1 files changed, 2 insertions, 0 deletions
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. */