@@ -1372,15 +1372,15 @@ LFORTRAN_API void _lfortran_read_int32(int32_t *p, int32_t unit_num)
1372
1372
if (unit_num == -1 ) {
1373
1373
// Read from stdin
1374
1374
FILE * fp = fdopen (0 , "r+" );
1375
- fread (p , sizeof (int32_t ), 1 , fp );
1375
+ ( void ) fread (p , sizeof (int32_t ), 1 , fp );
1376
1376
fclose (fp );
1377
1377
return ;
1378
1378
}
1379
1379
if (!unit_to_file [unit_num ]) {
1380
1380
printf ("No file found with given unit\n" );
1381
1381
exit (1 );
1382
1382
}
1383
- fread (p , sizeof (int32_t ), 1 , unit_to_file [unit_num ]);
1383
+ ( void ) fread (p , sizeof (int32_t ), 1 , unit_to_file [unit_num ]);
1384
1384
}
1385
1385
1386
1386
LFORTRAN_API void _lfortran_read_char (char * * p , int32_t unit_num )
@@ -1389,7 +1389,7 @@ LFORTRAN_API void _lfortran_read_char(char **p, int32_t unit_num)
1389
1389
// Read from stdin
1390
1390
* p = (char * )malloc (16 );
1391
1391
FILE * fp = fdopen (0 , "r+" );
1392
- fread (* p , sizeof (char ), 16 , fp );
1392
+ ( void ) fread (* p , sizeof (char ), 16 , fp );
1393
1393
fclose (fp );
1394
1394
return ;
1395
1395
}
@@ -1398,7 +1398,7 @@ LFORTRAN_API void _lfortran_read_char(char **p, int32_t unit_num)
1398
1398
exit (1 );
1399
1399
}
1400
1400
* p = (char * )malloc (16 );
1401
- fread (* p , sizeof (char ), 16 , unit_to_file [unit_num ]);
1401
+ ( void ) fread (* p , sizeof (char ), 16 , unit_to_file [unit_num ]);
1402
1402
}
1403
1403
1404
1404
LFORTRAN_API char * _lpython_read (int64_t fd , int64_t n )
0 commit comments