Fix MODE=optlinux for GitHub Actions

This commit is contained in:
Justine Tunney 2024-07-23 04:17:22 -07:00
parent 0602ff6bab
commit 2187d6d2dd
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -1206,7 +1206,11 @@ static void mbedtls_ssl_cf_memcpy_if_eq( unsigned char *dst,
__builtin_memcpy( &x, dst + i, 8 );
__builtin_memcpy( &y, src + i, 8 );
x = ( x & ~-equal ) | ( y & -equal );
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
// TODO(jart): What is this mysterious confusing GCC warning?
__builtin_memcpy( dst + i, &x, 8 );
#pragma GCC diagnostic pop
}
for( ; i < len; i++ )
dst[i] = ( src[i] & mask ) | ( dst[i] & ~mask );