mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-16 07:21:53 +03:00
Introduce MBEDTLS_MAYBE_UNUSED
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -334,4 +334,11 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
||||
#define MBEDTLS_OPTIMIZE_FOR_PERFORMANCE
|
||||
#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 */
|
||||
|
Reference in New Issue
Block a user