thats because the program dosen't have to care what `fread()` returns
then you might just want to suppress compiler warning by but i won't recommend it as you're technically outsmarting the compiler at this point and I would actually do something with what fread() returns e.g. like check any potential errors