aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-04-06 23:44:01 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-04-06 23:44:01 +0200
commit4f6f9e2054f1f8dbcd92857c6147420812097d62 (patch)
tree95682db3d059f5b2cafc166a57981f3a1fff74e1 /FICS
parentcead6da76287feeb96653941e2a102fcf4cfe811 (diff)
ReadV1GameFmt: suppress clang tidy warnings
Diffstat (limited to 'FICS')
-rw-r--r--FICS/gamedb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 84cc912..8425df4 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -1281,8 +1281,10 @@ ReadV1GameFmt(game *g, FILE *fp, const char *file, int version)
_Static_assert(17 < ARRAY_SIZE(g->black_name), "Unexpected array size");
ret[0] = fscanf(fp, "%17s %17s", g->white_name, g->black_name);
- ret[1] = fscanf(fp, "%d %d", &g->white_rating, &g->black_rating);
- ret[2] = fscanf(fp, "%d %d %d %d",
+ ret[1] = fscanf(fp, "%d %d", // NOLINT
+ &g->white_rating,
+ &g->black_rating);
+ ret[2] = fscanf(fp, "%d %d %d %d", // NOLINT
&g->wInitTime,
&g->wIncrement,
&g->bInitTime,
@@ -1325,7 +1327,7 @@ ReadV1GameFmt(game *g, FILE *fp, const char *file, int version)
ret[0] = fscanf(fp, "%d %d %d %d", &g->private, &g->type, &g->rated,
&g->clockStopped);
- ret[1] = fscanf(fp, "%d", &g->numHalfMoves);
+ ret[1] = fscanf(fp, "%d", &g->numHalfMoves); // NOLINT
if (ret[0] != 4 || ret[1] != 1) {
warnx("%s: fscanf error: %s", __func__, file);
return -1;