Remove warnings

This commit is contained in:
Bill Rossi 2025-02-15 15:51:53 -05:00
parent 05e34e2fbb
commit fbddc60188
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,11 @@
#include "field_multiplier.h" #include "field_multiplier.h"
#include "card.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; bool large = false;
for (int i = 0; i < h->count; i++) { for (int i = 0; i < h->count; i++) {
Card *c = h->cards[i]; Card *c = h->cards[i];

View File

@ -10,10 +10,6 @@ struct FieldMultiplier {
int value; int value;
}; };
static const FieldMultiplier small_field = { "Small Field", 1 }; FieldMultiplier *calculate_field_multiplier(Hand *h);
static const FieldMultiplier large_field = { "Large Field", 2 };
static const FieldMultiplier grand_field = { "Grand Field", 4 };
const FieldMultiplier *calculate_field_multiplier(Hand *h);
#endif #endif