mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-12 22:02:01 +00:00
Ignore fread return value (buildbot error)
This commit is contained in:
parent
c844141322
commit
3a45b169eb
2 changed files with 8 additions and 2 deletions
|
@ -237,6 +237,7 @@ model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat)
|
||||||
md2header_t *header;
|
md2header_t *header;
|
||||||
|
|
||||||
size_t fileLen;
|
size_t fileLen;
|
||||||
|
size_t fileReadLen;
|
||||||
int i, j, t;
|
int i, j, t;
|
||||||
|
|
||||||
size_t namelen;
|
size_t namelen;
|
||||||
|
@ -284,9 +285,11 @@ model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat)
|
||||||
|
|
||||||
// read in file
|
// read in file
|
||||||
buffer = malloc(fileLen);
|
buffer = malloc(fileLen);
|
||||||
fread(buffer, fileLen, 1, f);
|
fileReadLen = fread(buffer, fileLen, 1, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
|
(void)fileReadLen; // intentionally ignore return value, per buildbot
|
||||||
|
|
||||||
// get pointer to file header
|
// get pointer to file header
|
||||||
header = (md2header_t*)buffer;
|
header = (md2header_t*)buffer;
|
||||||
|
|
||||||
|
|
|
@ -150,6 +150,7 @@ model_t *MD3_LoadModel(const char *fileName, int ztag, boolean useFloat)
|
||||||
model_t *retModel = NULL;
|
model_t *retModel = NULL;
|
||||||
md3modelHeader *mdh;
|
md3modelHeader *mdh;
|
||||||
long fileLen;
|
long fileLen;
|
||||||
|
long fileReadLen;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
int surfEnd;
|
int surfEnd;
|
||||||
int i, t;
|
int i, t;
|
||||||
|
@ -176,9 +177,11 @@ model_t *MD3_LoadModel(const char *fileName, int ztag, boolean useFloat)
|
||||||
|
|
||||||
// read in file
|
// read in file
|
||||||
buffer = malloc(fileLen);
|
buffer = malloc(fileLen);
|
||||||
fread(buffer, fileLen, 1, f);
|
fileReadLen = fread(buffer, fileLen, 1, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
|
(void)fileReadLen; // intentionally ignore return value, per buildbot
|
||||||
|
|
||||||
// get pointer to file header
|
// get pointer to file header
|
||||||
mdh = (md3modelHeader*)buffer;
|
mdh = (md3modelHeader*)buffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue