diff --git a/src/nv_dds/nv_dds.cpp b/src/nv_dds/nv_dds.cpp index 92747c5683cd87d56bea61063c17e0925a37dc9e..2fa12bf689bed38dee5cb1b4a118a1853cea43af 100644 --- a/src/nv_dds/nv_dds.cpp +++ b/src/nv_dds/nv_dds.cpp @@ -302,7 +302,7 @@ bool CDDSImage::load(string filename, bool flipImage) // read in file marker, make sure its a DDS file char filecode[4]; - fread(filecode, 1, 4, fp); + (void)fread(filecode, 1, 4, fp); if (strncmp(filecode, "DDS ", 4) != 0) { fclose(fp); @@ -311,7 +311,7 @@ bool CDDSImage::load(string filename, bool flipImage) // read in DDS header DDS_HEADER ddsh; - fread(&ddsh, sizeof(DDS_HEADER), 1, fp); + (void)fread(&ddsh, sizeof(DDS_HEADER), 1, fp); swap_endian(&ddsh.dwSize); swap_endian(&ddsh.dwFlags); @@ -410,7 +410,7 @@ bool CDDSImage::load(string filename, bool flipImage) // load surface unsigned char *pixels = new unsigned char[size]; - fread(pixels, 1, size, fp); + (void)fread(pixels, 1, size, fp); img.create(width, height, depth, size, pixels); @@ -443,7 +443,7 @@ bool CDDSImage::load(string filename, bool flipImage) size = (this->*sizefunc)(w, h)*d; unsigned char *pixels = new unsigned char[size]; - fread(pixels, 1, size, fp); + (void)fread(pixels, 1, size, fp); mipmap.create(w, h, d, size, pixels);