Date
1 - 1 of 1
[meta-oe][PATCH 2/2] openthread: Use __attribute__ ((unused)) instead of removing 't'
This helps clang to not warn about this variable
Signed-off-by: Khem Raj <raj.khem@...>
---
.../openthread/ot-br-posix/mbedtls.patch | 11 +----------
.../openthread/ot-daemon/mbedtls.patch | 11 +----------
2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
index 91b3046484..23e4368d27 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
@@ -17,19 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@...>
void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b )
{
- mbedtls_mpi_uint c = 0, t = 0;
-+ mbedtls_mpi_uint c = 0;
++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0;
#if defined(MULADDC_HUIT)
for( ; i >= 8; i -= 8 )
-@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_
- }
- #endif /* MULADDC_HUIT */
-
-- t++;
--
- do {
- *d += c; c = ( *d < c ); d++;
- }
--- a/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt
+++ b/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt
@@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU)
diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
index be26a20dad..ffaff48dd4 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
+++ b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
@@ -17,19 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@...>
void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b )
{
- mbedtls_mpi_uint c = 0, t = 0;
-+ mbedtls_mpi_uint c = 0;
++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0;
#if defined(MULADDC_HUIT)
for( ; i >= 8; i -= 8 )
-@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_
- }
- #endif /* MULADDC_HUIT */
-
-- t++;
--
- do {
- *d += c; c = ( *d < c ); d++;
- }
--- a/third_party/mbedtls/repo/CMakeLists.txt
+++ b/third_party/mbedtls/repo/CMakeLists.txt
@@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU)
--
2.39.1
Signed-off-by: Khem Raj <raj.khem@...>
---
.../openthread/ot-br-posix/mbedtls.patch | 11 +----------
.../openthread/ot-daemon/mbedtls.patch | 11 +----------
2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
index 91b3046484..23e4368d27 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch
@@ -17,19 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@...>
void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b )
{
- mbedtls_mpi_uint c = 0, t = 0;
-+ mbedtls_mpi_uint c = 0;
++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0;
#if defined(MULADDC_HUIT)
for( ; i >= 8; i -= 8 )
-@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_
- }
- #endif /* MULADDC_HUIT */
-
-- t++;
--
- do {
- *d += c; c = ( *d < c ); d++;
- }
--- a/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt
+++ b/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt
@@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU)
diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
index be26a20dad..ffaff48dd4 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
+++ b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch
@@ -17,19 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@...>
void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b )
{
- mbedtls_mpi_uint c = 0, t = 0;
-+ mbedtls_mpi_uint c = 0;
++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0;
#if defined(MULADDC_HUIT)
for( ; i >= 8; i -= 8 )
-@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_
- }
- #endif /* MULADDC_HUIT */
-
-- t++;
--
- do {
- *d += c; c = ( *d < c ); d++;
- }
--- a/third_party/mbedtls/repo/CMakeLists.txt
+++ b/third_party/mbedtls/repo/CMakeLists.txt
@@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU)
--
2.39.1