Enable warning C4189: local variable is initialized but not referenced

This commit is contained in:
baldurk
2016-04-09 11:24:45 +02:00
parent 905e2ce0a2
commit cda0b4cb5a
8 changed files with 14 additions and 24 deletions
+1 -2
View File
@@ -273,7 +273,7 @@ Chunk::Chunk(Serialiser *ser, uint32_t chunkType, bool temporary)
if(newval > m_MaxChunks)
{
int breakpointme=0;
int breakpointme=0;(void)breakpointme;
}
m_MaxChunks = RDCMAX(newval, m_MaxChunks);
@@ -1737,7 +1737,6 @@ void Serialiser::AlignNextBuffer(const size_t alignment)
// avoid dynamically allocating
RDCASSERT(alignment <= 128);
byte padding[128] = {0};
byte *p = &padding[0];
if(m_Mode >= WRITING)
{
-2
View File
@@ -293,8 +293,6 @@ void PrintInteger(bool typeUnsigned, uint64_t argu, int base, uint64_t numbits,
}
else
{
bool left0s = true;
// buffer large enough for any int (up to 64bit unsigned)
char intbuf[32] = {0};