Skip to content

ssl_tls13_generic.c(228) variable "ret" was set but never used #10448

@VitSolcikNXP

Description

@VitSolcikNXP

int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;

This return variable is used only in MBEDTLS_SSL_DEBUG_RET macro. When it is not used, compilator throws warning:
library/ssl_tls13_generic.c(228) : Warning[Pe550]: variable "ret" was set but never used

Can this be re-worked? Maybe just used void typecast:
(void) ret;

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent-tls13size-xsEstimated task size: extra small (a few hours at most)

    Type

    No type

    Projects

    Status

    Triage in

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions