diff --git a/public/bitmap/imageformat.h b/public/bitmap/imageformat.h index 5a4e7dd4..aad2ee2a 100644 --- a/public/bitmap/imageformat.h +++ b/public/bitmap/imageformat.h @@ -374,7 +374,7 @@ namespace ImageLoader struct ResampleInfo_t { - ResampleInfo_t() : m_nFlags(0), m_flAlphaThreshhold(0.4f), m_flAlphaHiFreqThreshhold(0.4f), m_nSrcDepth(1), m_nDestDepth(1) + ResampleInfo_t() : m_nSrcDepth(1), m_nDestDepth(1), m_flAlphaThreshhold(0.4f), m_flAlphaHiFreqThreshhold(0.4f), m_nFlags(0) { m_flColorScale[0] = 1.0f, m_flColorScale[1] = 1.0f, m_flColorScale[2] = 1.0f, m_flColorScale[3] = 1.0f; m_flColorGoal[0] = 0.0f, m_flColorGoal[1] = 0.0f, m_flColorGoal[2] = 0.0f, m_flColorGoal[3] = 0.0f; diff --git a/public/studio.h b/public/studio.h index 9b58ab0c..6855c0ad 100644 --- a/public/studio.h +++ b/public/studio.h @@ -2498,10 +2498,11 @@ public: // ctor CActivityToSequenceMapping( void ) - : m_pSequenceTuples(NULL), m_iSequenceTuplesCount(0), m_ActToSeqHash(8,0,0), m_expectedPStudioHdr(NULL), m_expectedVModel(NULL) + : m_pSequenceTuples(NULL), m_iSequenceTuplesCount(0), #if STUDIO_SEQUENCE_ACTIVITY_LAZY_INITIALIZE - , m_bIsInitialized(false) + m_bIsInitialized(false), #endif + m_ActToSeqHash(8,0,0), m_expectedPStudioHdr(NULL), m_expectedVModel(NULL) {}; // dtor -- not virtual because this class has no inheritors diff --git a/public/tier1/byteswap.h b/public/tier1/byteswap.h index c7bc3c87..4bda2b26 100644 --- a/public/tier1/byteswap.h +++ b/public/tier1/byteswap.h @@ -234,7 +234,7 @@ private: Assert( "Invalid size in CByteswap::LowLevelByteSwap" && 0 ); } #else - for( int i = 0; i < sizeof(T); i++ ) + for( size_t i = 0; i < sizeof(T); i++ ) { ((unsigned char* )&temp)[i] = ((unsigned char*)input)[sizeof(T)-(i+1)]; } diff --git a/public/tier1/utlrbtree.h b/public/tier1/utlrbtree.h index 6ea22614..cdb06ee5 100644 --- a/public/tier1/utlrbtree.h +++ b/public/tier1/utlrbtree.h @@ -374,8 +374,8 @@ protected: template < class T, class I, typename L, class M > inline CUtlRBTree::CUtlRBTree( int growSize, int initSize, const LessFunc_t &lessfunc ) : -m_Elements( growSize, initSize ), m_LessFunc( lessfunc ), +m_Elements( growSize, initSize ), m_Root( InvalidIndex() ), m_NumElements( 0 ), m_FirstFree( InvalidIndex() ), @@ -386,8 +386,8 @@ m_LastAlloc( m_Elements.InvalidIterator() ) template < class T, class I, typename L, class M > inline CUtlRBTree::CUtlRBTree( const LessFunc_t &lessfunc ) : -m_Elements( 0, 0 ), m_LessFunc( lessfunc ), +m_Elements( 0, 0 ), m_Root( InvalidIndex() ), m_NumElements( 0 ), m_FirstFree( InvalidIndex() ),