ot-br-posix: Fix unused variable error

Fixes
r: variable 'i' set but not used [-Wunused-but-set-variable]
|     for (uint8_t i = 0;; i++)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-09-07 00:17:28 -07:00
parent 6721430ca9
commit db1ebc121d
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- a/third_party/openthread/repo/src/cli/cli.cpp
+++ b/third_party/openthread/repo/src/cli/cli.cpp
@@ -1785,6 +1785,7 @@ template <> otError Interpreter::Process
for (uint8_t i = 0;; i++)
{
+ OT_UNUSED_VARIABLE(i);
SuccessOrExit(otThreadGetNextCacheEntry(GetInstancePtr(), &entry, &iterator));
OutputEidCacheEntry(entry);
}

View File

@ -19,6 +19,7 @@ SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=m
file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \
file://0001-bn_mul.h-fix-x86-PIC-inline-ASM-compilation-with-GCC.patch \
file://mbedtls.patch \
file://unused_var.patch \
"
S = "${WORKDIR}/git"