mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 09:38:26 +00:00
Put clang analyzer fix inside __clang_analyzer__ guard
This commit is contained in:
parent
2dd49d1e47
commit
d1fe7aabc9
1 changed files with 6 additions and 1 deletions
|
@ -83,8 +83,13 @@ static int generic_check( const mbedtls_md_info_t *md_info, char *filename )
|
||||||
int nb_err1, nb_err2;
|
int nb_err1, nb_err2;
|
||||||
int nb_tot1, nb_tot2;
|
int nb_tot1, nb_tot2;
|
||||||
unsigned char sum[MBEDTLS_MD_MAX_SIZE];
|
unsigned char sum[MBEDTLS_MD_MAX_SIZE];
|
||||||
char buf[MBEDTLS_MD_MAX_SIZE * 2 + 1] = { }, line[1024];
|
char line[1024];
|
||||||
char diff;
|
char diff;
|
||||||
|
#if defined(__clang_analyzer__)
|
||||||
|
char buf[MBEDTLS_MD_MAX_SIZE * 2 + 1] = { };
|
||||||
|
#else
|
||||||
|
char buf[MBEDTLS_MD_MAX_SIZE * 2 + 1];
|
||||||
|
#endif
|
||||||
|
|
||||||
if( ( f = fopen( filename, "rb" ) ) == NULL )
|
if( ( f = fopen( filename, "rb" ) ) == NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue