Hi Kaleb,

Thank you. I will assign 0 until the fixed version is released.

By the way I removed our project suppressed warnings and got this in Keil MDK:

*** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

src\internal.c(13889): warning:  #1293-D: assignment in condition
              if (!(ret = wc_InitSha256(sha256))
src\internal.c(13890): warning:  #1293-D: assignment in condition
              &&  !(ret = wc_Sha256Update(sha256, ssl->arrays->clientRandom,
src\internal.c(13892): warning:  #1293-D: assignment in condition
              &&  !(ret = wc_Sha256Update(sha256, ssl->arrays->serverRandom,
src\internal.c(13894): warning:  #1293-D: assignment in condition
              &&  !(ret = wc_Sha256Update(sha256, messageVerify, verifySz))) {

And this in IAR:

Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 546
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 563 
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 3381
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 3394 
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 3999 
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 4035
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 4533 
Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\asn.c 4534 

Warning[Pa089]: enumerated type mixed with another enumerated type wolfcrypt\src\hash.c 110 

Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2842 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2843 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2844 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2896 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2901 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2955 
Warning[Pa089]: enumerated type mixed with another enumerated type src\keys.c 2956 

Using wolfssl-3.9.8-commercial.

Best regards,
Stana

Hello,

I got a compilation warning in IAR C/C++ Compiler for ARM 7.70.2.11706 (7.70.2.11706) regarding uninitialized variable in src\ssl.c, version 3.9.8:

Warning[Pe549]: variable "ticketLen" is used before its value is set C:\projects\mcu-sdk-2.0\middleware\wolfssl\src\ssl.c 7637

static int GetDeepCopySession(WOLFSSL* ssl, WOLFSSL_SESSION* copyFrom)
{
    WOLFSSL_SESSION* copyInto = &ssl->session;
    void* tmpBuff             = NULL;
    int ticketLen;
    int doDynamicCopy         = 0;
    int ret                   = SSL_SUCCESS;

[b]    (void)ticketLen;[/b]
    (void)doDynamicCopy;
    (void)tmpBuff;
...

Although this should be pretty harmless, could it be fixed? The code in 3.9.10 looks the same.

Thanks,
Stana