Fix: misc compiler warnings

Seen in Xcode
This commit is contained in:
Bernhard Miklautz 2014-09-12 00:36:29 +02:00
parent 0313ca3622
commit 2218e9684a
3 changed files with 2 additions and 3 deletions

View File

@ -273,7 +273,7 @@ char* GetKnownSubPath(int id, const char* path)
char* GetEnvironmentPath(char* name)
{
char* env;
char* env = NULL;
DWORD nSize;
nSize = GetEnvironmentVariableA(name, NULL, 0);

View File

@ -168,7 +168,7 @@ void BitDump(const char* tag, int level, const BYTE* buffer, UINT32 length, UINT
const char* str;
const char** strs;
char pbuffer[64 * 8 + 1];
size_t pos = 0, len = sizeof(pbuffer);
size_t pos = 0;
strs = (flags & BITDUMP_MSB_FIRST) ? BYTE_BIT_STRINGS_MSB : BYTE_BIT_STRINGS_LSB;
for (i = 0; i < length; i += 8)

View File

@ -37,7 +37,6 @@ void winpr_HexDump(const char* tag, int level, const BYTE* data, int length)
{
const BYTE* p = data;
int i, line, offset = 0;
const size_t llen = (length > WINPR_HEXDUMP_LINE_LENGTH) ? WINPR_HEXDUMP_LINE_LENGTH : length;
size_t blen = 7 + WINPR_HEXDUMP_LINE_LENGTH * 5;
size_t pos = 0;
char* buffer = malloc(blen);