From: Carl Worth Date: Mon, 29 Jan 2007 14:22:09 +0000 (-0800) Subject: Add unconditional return value to card_compare X-Git-Url: https://git.cworth.org/git?p=kub;a=commitdiff_plain;h=c598f4c56ae679e01c00ff065dce0e1f631d2792 Add unconditional return value to card_compare This avoids a wanring from gcc about a function possibly not returning a value. --- diff --git a/kub.c b/kub.c index 702d833..b9636af 100644 --- a/kub.c +++ b/kub.c @@ -81,8 +81,10 @@ static int card_compare(card_t *card_one, card_t *card_two) return -1; if (card_one->number == card_two->number) return 0; - if (card_one->number > card_two->number) - return 1; + /* At this point, we know that this must be true: + * if (card_one->number > card_two->number) + */ + return 1; } static int card_group_is_run(card_group_t *card_group)