diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-04-25 21:59:09 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-04-25 21:59:09 +0200 |
| commit | 345a98d8d9849bbea6b0863c463af7a7d6e5abaf (patch) | |
| tree | 30bda7c74dc8e9a66c4d2802d6415d848ce028ff /FICS | |
| parent | b5a07a295e4c83ded3b035332c0b8db24839aef1 (diff) | |
Writing to stderr requires no error checking -- cast the results to void
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/board.c b/FICS/board.c index 589fca9..8c480a5 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -883,7 +883,8 @@ style10(game_state_t *b, move_t *ml) too_long = (ret < 0 || (size_t)ret >= sizeof tmp); if (too_long) { - fprintf(stderr, "FICS: %s: warning: snprintf truncated\n", + (void) fprintf(stderr, "FICS: %s: warning: " + "snprintf truncated\n", __func__); } @@ -1042,7 +1043,8 @@ style12(game_state_t *b, move_t *ml) too_long = (ret < 0 || (size_t)ret >= sizeof tmp); if (too_long) { - fprintf(stderr, "FICS: %s: warning: snprintf truncated\n", + (void) fprintf(stderr, "FICS: %s: warning: " + "snprintf truncated\n", __func__); } |
