Silence warnings about unused return value
This macro is not used inside the library yet, but may be used in deprecated functions in the future, if a function returning void has to change to returning an error. It may also be useful in user code, so it is in a public header. Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com> Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
409fbbe4a2
commit
5c4ca32f93
1 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,13 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||
*/
|
||||
#define MBEDTLS_CHECK_RETURN_OPTIONAL
|
||||
|
||||
/** \def MBEDTLS_IGNORE_RETURN
|
||||
*
|
||||
* Silences warning about unused return value given by functions
|
||||
* with \c MBEDTLS_CHECK_RETURN attribute.
|
||||
*/
|
||||
#define MBEDTLS_IGNORE_RETURN(result) if( result ) {}
|
||||
|
||||
/**
|
||||
* \brief Securely zeroize a buffer
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue