Fix some more compiler warnings.

This commit is contained in:
Pavel Krajcevski 2013-01-29 17:37:20 -05:00
parent 0afff4188e
commit af25b83356
5 changed files with 2 additions and 6 deletions

View File

@ -1158,7 +1158,7 @@ double BC7CompressionMode::Compress(BitStream &stream, const int shapeIdx, const
double totalErr = 0.0;
for(int cidx = 0; cidx < nSubsets; cidx++) {
int indices[kMaxNumDataPoints];
int indices[kMaxNumDataPoints] = {0};
if(m_Attributes->hasRotation) {

View File

@ -71,7 +71,6 @@ class BitStream {
BitStream(unsigned char *ptr, int nBits, int start_offset) :
m_BitsWritten(0),
m_NumBits(nBits),
m_NumBytes((nBits + start_offset + 7) >> 3),
m_CurByte(ptr),
m_NextBit(start_offset % 8),
done(false)
@ -116,7 +115,6 @@ class BitStream {
int m_BitsWritten;
const int m_NumBits;
const int m_NumBytes;
unsigned char *m_CurByte;
int m_NextBit;

View File

@ -202,7 +202,7 @@ int32 FileStream::Write(const uint8 *buf, uint32 bufSz) {
return amtWritten;
}
int64 FileStream::Tell() {
int32 FileStream::Tell() {
FILE *fp = m_Impl->GetFilePtr();
if(NULL == fp) {
return -1;

View File

@ -87,7 +87,6 @@ public:
ImageWriterPNG::ImageWriterPNG(const Image &im)
: ImageWriter(im.GetWidth(), im.GetHeight(), im.RawData())
, m_StreamPosition(0)
, m_TotalBytesWritten(0)
{
}

View File

@ -56,7 +56,6 @@ class ImageWriterPNG : public ImageWriter {
virtual bool WriteImage();
private:
uint32 m_StreamPosition;
uint32 m_TotalBytesWritten;
friend class PNGStreamWriter;
};