Commit 5fb971a6 authored by Janis Born's avatar Janis Born

fix unused return types in nv_dds.cpp

parent 0e454b1d
...@@ -302,7 +302,7 @@ bool CDDSImage::load(string filename, bool flipImage) ...@@ -302,7 +302,7 @@ bool CDDSImage::load(string filename, bool flipImage)
// read in file marker, make sure its a DDS file // read in file marker, make sure its a DDS file
char filecode[4]; char filecode[4];
fread(filecode, 1, 4, fp); (void)fread(filecode, 1, 4, fp);
if (strncmp(filecode, "DDS ", 4) != 0) if (strncmp(filecode, "DDS ", 4) != 0)
{ {
fclose(fp); fclose(fp);
...@@ -311,7 +311,7 @@ bool CDDSImage::load(string filename, bool flipImage) ...@@ -311,7 +311,7 @@ bool CDDSImage::load(string filename, bool flipImage)
// read in DDS header // read in DDS header
DDS_HEADER ddsh; 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.dwSize);
swap_endian(&ddsh.dwFlags); swap_endian(&ddsh.dwFlags);
...@@ -410,7 +410,7 @@ bool CDDSImage::load(string filename, bool flipImage) ...@@ -410,7 +410,7 @@ bool CDDSImage::load(string filename, bool flipImage)
// load surface // load surface
unsigned char *pixels = new unsigned char[size]; 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); img.create(width, height, depth, size, pixels);
...@@ -443,7 +443,7 @@ bool CDDSImage::load(string filename, bool flipImage) ...@@ -443,7 +443,7 @@ bool CDDSImage::load(string filename, bool flipImage)
size = (this->*sizefunc)(w, h)*d; size = (this->*sizefunc)(w, h)*d;
unsigned char *pixels = new unsigned char[size]; 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); mipmap.create(w, h, d, size, pixels);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment