mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
Introduce MBEDTLS_MAYBE_UNUSED
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
a7127eb67c
commit
1ec1a0f0cc
@ -334,4 +334,11 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
|||||||
#define MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
#define MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Suppress compiler warnings for unused functions and variables. */
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#define MBEDTLS_MAYBE_UNUSED __attribute__((unused))
|
||||||
|
#else
|
||||||
|
#define MBEDTLS_MAYBE_UNUSED
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_LIBRARY_COMMON_H */
|
#endif /* MBEDTLS_LIBRARY_COMMON_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user