Introduce MBEDTLS_MAYBE_UNUSED
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
a7127eb67c
commit
1ec1a0f0cc
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue