Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 1 | mbedtls: Disable documentation warning as error with clang |
| 2 | |
| 3 | There are shortcomings with doxygen info which clang-15+ flags, dont |
| 4 | treat them as errors |
| 5 | |
| 6 | Remove unused variable |
| 7 | |
| 8 | Fixes |
| 9 | library/bignum.c:1395:29: error: variable 't' set but not used [-Werror,-Wunused-but-set-variable] |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- a/third_party/openthread/repo/third_party/mbedtls/repo/library/bignum.c |
| 14 | +++ b/third_party/openthread/repo/third_party/mbedtls/repo/library/bignum.c |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 15 | @@ -1392,7 +1392,7 @@ void mpi_mul_hlp( size_t i, |
| 16 | mbedtls_mpi_uint *d, |
| 17 | mbedtls_mpi_uint b ) |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 18 | { |
| 19 | - mbedtls_mpi_uint c = 0, t = 0; |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 20 | + mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0; |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 21 | |
| 22 | #if defined(MULADDC_HUIT) |
| 23 | for( ; i >= 8; i -= 8 ) |