From fbddc6018857734884d05a1e3c2b59cbdcd2ed5c Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Sat, 15 Feb 2025 15:51:53 -0500 Subject: [PATCH] Remove warnings --- field_multiplier.c | 6 +++++- field_multiplier.h | 6 +----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/field_multiplier.c b/field_multiplier.c index fca83f8..6d0a38e 100644 --- a/field_multiplier.c +++ b/field_multiplier.c @@ -3,7 +3,11 @@ #include "field_multiplier.h" #include "card.h" -const FieldMultiplier *calculate_field_multiplier(Hand *h) { +static FieldMultiplier small_field = { "Small Field", 1 }; +static FieldMultiplier large_field = { "Large Field", 2 }; +static FieldMultiplier grand_field = { "Grand Field", 4 }; + +FieldMultiplier *calculate_field_multiplier(Hand *h) { bool large = false; for (int i = 0; i < h->count; i++) { Card *c = h->cards[i]; diff --git a/field_multiplier.h b/field_multiplier.h index 8b3e1f3..c9ea8a2 100644 --- a/field_multiplier.h +++ b/field_multiplier.h @@ -10,10 +10,6 @@ struct FieldMultiplier { int value; }; -static const FieldMultiplier small_field = { "Small Field", 1 }; -static const FieldMultiplier large_field = { "Large Field", 2 }; -static const FieldMultiplier grand_field = { "Grand Field", 4 }; - -const FieldMultiplier *calculate_field_multiplier(Hand *h); +FieldMultiplier *calculate_field_multiplier(Hand *h); #endif