From 8043a2bad636f2c3d9abcf175ed483e1f8c8c561 Mon Sep 17 00:00:00 2001 From: MeirGavish Date: Sat, 26 Jul 2025 20:04:39 +0300 Subject: [PATCH] Added flag to Makefile to treat warnings as errors that fail build, and commented out code in game.c to be warning free --- Makefile | 2 +- source/game.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cafa2aa..55f4d21 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ GRAPHICS := graphics #--------------------------------------------------------------------------------- ARCH := -mthumb -mthumb-interwork -CFLAGS := -O3 -Wall \ +CFLAGS := -O3 -Wall -Werror\ -mcpu=arm7tdmi -mtune=arm7tdmi \ -ffast-math -fomit-frame-pointer -funroll-loops \ $(ARCH) diff --git a/source/game.c b/source/game.c index 62b3fdf..aaf472c 100644 --- a/source/game.c +++ b/source/game.c @@ -2030,7 +2030,9 @@ void game_round_end() case 6: // This state handles displaying the rewards earned from the completed round { int hand_y = 0; - int interest_y = 0; + + // TODO: Implement interest + //int interest_y = 0; if (hands > 0) {