mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 13:32:48 -05:00
Coverity build fixes.
Like every other toolchain I've tried, my Coverity scanning build has its share of random objections to parts of my Windows API type- checking system. I do wonder if that bright idea was worth the hassle - but it would probably cost all the annoyance all over again to back out now...
This commit is contained in:
@ -19,7 +19,14 @@ int got_crypt(void)
|
||||
attempted = TRUE;
|
||||
crypt = load_system32_dll("crypt32.dll");
|
||||
successful = crypt &&
|
||||
GET_WINDOWS_FUNCTION(crypt, CryptProtectMemory);
|
||||
#ifdef COVERITY
|
||||
/* The build toolchain I use with Coverity doesn't know
|
||||
* about this function, so can't type-check it */
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(crypt, CryptProtectMemory)
|
||||
#else
|
||||
GET_WINDOWS_FUNCTION(crypt, CryptProtectMemory)
|
||||
#endif
|
||||
;
|
||||
}
|
||||
return successful;
|
||||
}
|
||||
|
Reference in New Issue
Block a user