mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-06 07:10:41 +00:00
Check gcc version
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
4faa34dc86
commit
386c39f2d5
@ -412,14 +412,14 @@ int mbedtls_gcm_starts(mbedtls_gcm_context *ctx,
|
|||||||
while (iv_len > 0) {
|
while (iv_len > 0) {
|
||||||
use_len = (iv_len < 16) ? iv_len : 16;
|
use_len = (iv_len < 16) ? iv_len : 16;
|
||||||
|
|
||||||
#if defined(MBEDTLS_COMPILER_IS_GCC)
|
#if defined(MBEDTLS_COMPILER_IS_GCC) && (MBEDTLS_GCC_VERSION >= 70110)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic warning "-Wstringop-overflow=0"
|
#pragma GCC diagnostic warning "-Wstringop-overflow=0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mbedtls_xor(ctx->y, ctx->y, p, use_len);
|
mbedtls_xor(ctx->y, ctx->y, p, use_len);
|
||||||
|
|
||||||
#if defined(MBEDTLS_COMPILER_IS_GCC)
|
#if defined(MBEDTLS_COMPILER_IS_GCC) && (MBEDTLS_GCC_VERSION >= 70110)
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user