fix windows warnings, ignore empty file ones

This commit is contained in:
Chris Conlon 2014-03-27 10:09:14 -06:00
parent 62b8abafc5
commit 4677f2f2c1
2 changed files with 8 additions and 2 deletions

View File

@ -49,6 +49,7 @@
UsePrecompiledHeader="0"
WarningLevel="4"
DebugInformationFormat="4"
DisableSpecificWarnings="4206"
/>
<Tool
Name="VCManagedResourceCompilerTool"

View File

@ -3009,7 +3009,10 @@ static int MatchDomainName(const char* pattern, int len, const char* str)
if (pattern == NULL || str == NULL || len <= 0)
return 0;
while (len > 0 && (p = (char)XTOLOWER(*pattern++))) {
while (len > 0) {
p = (char)XTOLOWER(*pattern++);
if (p == '*') {
while (--len > 0 && (p = (char)XTOLOWER(*pattern++)) == '*')
;
@ -3699,7 +3702,9 @@ static int DoHelloRequest(CYASSL* ssl, const byte* input, word32* inOutIdx,
int DoFinished(CYASSL* ssl, const byte* input, word32* inOutIdx, word32 size,
word32 totalSz, int sniff)
{
if ((ssl->options.tls ? TLS_FINISHED_SZ : FINISHED_SZ) != size)
word32 finishedSz = (ssl->options.tls ? TLS_FINISHED_SZ : FINISHED_SZ);
if (finishedSz != size)
return BUFFER_ERROR;
#ifdef CYASSL_CALLBACKS