From 7c8bc15f72b5d73003ee1a931212088bc7d072ff Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 9 Mar 2026 21:04:34 +0100 Subject: Discarded fclose() return values for nonnull file pointers --- FICS/ratings.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/FICS/ratings.c b/FICS/ratings.c index 6d71892..d1d10d8 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1900,11 +1900,11 @@ DisplayTargetRank(int p, char *target, int show, int showComp) pprintf(p, "No ratings to show.\n"); if (fb != NULL) - fclose(fb); + (void) fclose(fb); if (fs != NULL) - fclose(fs); + (void) fclose(fs); if (fw != NULL) - fclose(fw); + (void) fclose(fw); return 0; } @@ -1918,11 +1918,11 @@ DisplayTargetRank(int p, char *target, int show, int showComp) showComp, show, target); if (fb != NULL) - fclose(fb); + (void) fclose(fb); if (fs != NULL) - fclose(fs); + (void) fclose(fs); if (fw != NULL) - fclose(fw); + (void) fclose(fw); return 1; } @@ -1965,11 +1965,11 @@ DisplayRankedPlayers(int p, int start, int end, int show, int showComp) ""); if (fb) - fclose(fb); + (void) fclose(fb); if (fs) - fclose(fs); + (void) fclose(fs); if (fw) - fclose(fw); + (void) fclose(fw); return 1; } -- cgit v1.2.3