mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 04:45:42 +01:00
Fix some more compiler warnings.
This commit is contained in:
parent
0afff4188e
commit
af25b83356
@ -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) {
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -87,7 +87,6 @@ public:
|
||||
ImageWriterPNG::ImageWriterPNG(const Image &im)
|
||||
: ImageWriter(im.GetWidth(), im.GetHeight(), im.RawData())
|
||||
, m_StreamPosition(0)
|
||||
, m_TotalBytesWritten(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,6 @@ class ImageWriterPNG : public ImageWriter {
|
||||
virtual bool WriteImage();
|
||||
private:
|
||||
uint32 m_StreamPosition;
|
||||
uint32 m_TotalBytesWritten;
|
||||
friend class PNGStreamWriter;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user