squelch compiler warnings about not using bytes_read/bytes_written
This commit is contained in:
parent
df03a38be0
commit
b4d5de0910
@ -41,6 +41,7 @@ bool BMP::open(const char * fileName)
|
|||||||
// read image information
|
// read image information
|
||||||
bytes_read = fread(&m_info, sizeof(m_info), 1, m_fp);
|
bytes_read = fread(&m_info, sizeof(m_info), 1, m_fp);
|
||||||
}
|
}
|
||||||
|
(void)bytes_read;
|
||||||
return (m_fp != NULL);
|
return (m_fp != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,6 +92,7 @@ bool BMP::create(const char * fileName, int width, int height,
|
|||||||
data_ptr -= 3 * width;
|
data_ptr -= 3 * width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(void)bytes_written;
|
||||||
return (m_fp != NULL);
|
return (m_fp != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,6 +119,7 @@ void BMP::read(unsigned char * buf)
|
|||||||
data_ptr -= row_data_bytes;
|
data_ptr -= row_data_bytes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(void)bytes_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BMP::close()
|
void BMP::close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user