fix a few warnings

This commit is contained in:
Erwin Coumans
2017-01-24 08:36:46 -08:00
parent 7e22e225a3
commit 95e25d9942
2 changed files with 4 additions and 2 deletions

View File

@@ -75,7 +75,8 @@ bFile::bFile(const char *filename, const char headerString[7])
fseek(fp, 0L, SEEK_SET);
mFileBuffer = (char*)malloc(mFileLen+1);
fread(mFileBuffer, mFileLen, 1, fp);
size_t bytesRead;
bytesRead = fread(mFileBuffer, mFileLen, 1, fp);
fclose(fp);

View File

@@ -287,7 +287,8 @@ struct CommandLogPlayback
m_file = fopen(fileName,"rb");
if (m_file)
{
fread(m_header,12,1,m_file);
size_t bytesRead;
bytesRead = fread(m_header,12,1,m_file);
}
unsigned char c = m_header[7];
m_fileIs64bit = (c=='-');