Ignore fread return value (buildbot error)

This commit is contained in:
mazmazz 2018-12-18 20:41:08 -05:00
parent c844141322
commit 3a45b169eb
2 changed files with 8 additions and 2 deletions

View file

@ -237,6 +237,7 @@ model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat)
md2header_t *header;
size_t fileLen;
size_t fileReadLen;
int i, j, t;
size_t namelen;
@ -284,9 +285,11 @@ model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat)
// read in file
buffer = malloc(fileLen);
fread(buffer, fileLen, 1, f);
fileReadLen = fread(buffer, fileLen, 1, f);
fclose(f);
(void)fileReadLen; // intentionally ignore return value, per buildbot
// get pointer to file header
header = (md2header_t*)buffer;

View file

@ -150,6 +150,7 @@ model_t *MD3_LoadModel(const char *fileName, int ztag, boolean useFloat)
model_t *retModel = NULL;
md3modelHeader *mdh;
long fileLen;
long fileReadLen;
char *buffer;
int surfEnd;
int i, t;
@ -176,9 +177,11 @@ model_t *MD3_LoadModel(const char *fileName, int ztag, boolean useFloat)
// read in file
buffer = malloc(fileLen);
fread(buffer, fileLen, 1, f);
fileReadLen = fread(buffer, fileLen, 1, f);
fclose(f);
(void)fileReadLen; // intentionally ignore return value, per buildbot
// get pointer to file header
mdh = (md3modelHeader*)buffer;