Fix: misc compiler warnings
Seen in Xcode
This commit is contained in:
parent
0313ca3622
commit
2218e9684a
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user