@@ -12,43 +12,52 @@ diff --git a/src/duckdb/third_party/mbedtls/library/constant_time_impl.h b/src/d
1212index f63176c16..8d8aa87f0 100644
1313--- a/src/duckdb/third_party/mbedtls/library/constant_time_impl.h
1414+++ b/src/duckdb/third_party/mbedtls/library/constant_time_impl.h
15- @@ -32,8 +32,6 @@
15+ @@ -32,8 +32,8 @@
1616 * at the bottom of this file.
1717 */
1818 #if defined(MBEDTLS_COMPILER_IS_GCC) && (__GNUC__ > 4)
1919- #pragma GCC diagnostic push
2020- #pragma GCC diagnostic ignored "-Wredundant-decls"
21+ + #pragma GCC diagnostic push
22+ + #pragma GCC diagnostic ignored "-Wredundant-decls"
2123 #endif
2224
2325 /* Disable asm under Memsan because it confuses Memsan and generates false errors.
24- @@ -549,8 +547,6 @@ inline mbedtls_ct_condition_t mbedtls_ct_bool_not(mbedtls_ct_condition_t x)
26+ @@ -549,8 +547,8 @@ inline mbedtls_ct_condition_t mbedtls_ct_bool_not(mbedtls_ct_condition_t x)
2527 }
2628
2729 #if defined(MBEDTLS_COMPILER_IS_GCC) && (__GNUC__ > 4)
28- - /* Restore warnings for -Wredundant-decls on gcc */
30+ /* Restore warnings for -Wredundant-decls on gcc */
2931- #pragma GCC diagnostic pop
32+ + #pragma GCC diagnostic pop
3033 #endif
3134
3235 #endif /* MBEDTLS_CONSTANT_TIME_IMPL_H */
3336diff --git a/src/duckdb/third_party/mbedtls/library/platform_util.cpp b/src/duckdb/third_party/mbedtls/library/platform_util.cpp
3437index 19ef07aea..889caab08 100644
3538--- a/src/duckdb/third_party/mbedtls/library/platform_util.cpp
3639+++ b/src/duckdb/third_party/mbedtls/library/platform_util.cpp
37- @@ -118,17 +118,11 @@ void mbedtls_platform_zeroize(void *buf, size_t len)
40+ @@ -118,17 +118,17 @@ void mbedtls_platform_zeroize(void *buf, size_t len)
3841 * zero'd memory as an additional protection against being optimised away. */
3942 #if defined(__clang__) || (__GNUC__ >= 10)
4043 #if defined(__clang__)
4144- #pragma clang diagnostic push
4245- #pragma clang diagnostic ignored "-Wvla"
46+ + #pragma clang diagnostic push
47+ + #pragma clang diagnostic ignored "-Wvla"
4348 #elif defined(MBEDTLS_COMPILER_IS_GCC)
4449- #pragma GCC diagnostic push
4550- #pragma GCC diagnostic ignored "-Wvla"
51+ + #pragma GCC diagnostic push
52+ + #pragma GCC diagnostic ignored "-Wvla"
4653 #endif
4754 asm volatile ("" : : "m" (*(char (*)[len]) buf) :);
4855 #if defined(__clang__)
4956- #pragma clang diagnostic pop
57+ + #pragma clang diagnostic pop
5058 #elif defined(MBEDTLS_COMPILER_IS_GCC)
5159- #pragma GCC diagnostic pop
60+ + #pragma GCC diagnostic pop
5261 #endif
5362 #endif
5463 #endif
0 commit comments