mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Support MSVS with clang
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@@ -335,7 +335,7 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Suppress compiler warnings for unused functions and variables. */
|
/* Suppress compiler warnings for unused functions and variables. */
|
||||||
#if !defined(MBEDTLS_MAYBE_UNUSED) && defined(__GNUC__)
|
#if !defined(MBEDTLS_MAYBE_UNUSED) && (defined(__GNUC__) || defined(__clang__))
|
||||||
#define MBEDTLS_MAYBE_UNUSED __attribute__((unused))
|
#define MBEDTLS_MAYBE_UNUSED __attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MBEDTLS_MAYBE_UNUSED) && defined(__IAR_SYSTEMS_ICC__) && defined(__VER__)
|
#if !defined(MBEDTLS_MAYBE_UNUSED) && defined(__IAR_SYSTEMS_ICC__) && defined(__VER__)
|
||||||
|
Reference in New Issue
Block a user