mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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:
parent
6721430ca9
commit
db1ebc121d
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user