Skip to content

Commit 0341489

Browse files
committed
suppress warnings on gcc > 12.0
1 parent 1b21f41 commit 0341489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mad_tpsa_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ FUN(scan_coef) (T *t, FILE *stream_)
284284
#endif
285285

286286
if (c == 'I') {
287-
fscanf(stream_, "I%*[ \t]COEFFICIENT%*[ \t]ORDER%*[ \t]EXPONENTS%n", &nc);
287+
(void)fscanf(stream_, "I%*[ \t]COEFFICIENT%*[ \t]ORDER%*[ \t]EXPONENTS%n", &nc);
288288
if (nc < 29) warn("unable to parse GTPSA coefficients for '%s'",
289289
t->nam[0] ? t->nam : "-UNNAMED-");
290290
#if DEBUG > 2
@@ -294,7 +294,7 @@ FUN(scan_coef) (T *t, FILE *stream_)
294294
}
295295

296296
if (c == 'A') {
297-
fscanf(stream_, "ALL COMPONENTS %n", &nc); // works for 0_dp, ALL and EPS
297+
(void)fscanf(stream_, "ALL COMPONENTS %n", &nc); // works for 0_dp, ALL and EPS
298298
if (nc != 15) warn("unable to parse GTPSA coefficients for '%s'",
299299
t->nam[0] ? t->nam : "-UNNAMED-");
300300
#if DEBUG > 2

0 commit comments

Comments
 (0)