[fix] Fix warnings checking fread, write...