Topic: IAR compilation warning in src\ssl.c
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