mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +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:
@@ -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-cmake-Disable-nonnull-compare-warning-on-gcc.patch \
|
||||||
file://0001-bn_mul.h-fix-x86-PIC-inline-ASM-compilation-with-GCC.patch \
|
file://0001-bn_mul.h-fix-x86-PIC-inline-ASM-compilation-with-GCC.patch \
|
||||||
file://mbedtls.patch \
|
file://mbedtls.patch \
|
||||||
|
file://unused_var.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|||||||
Reference in New Issue
Block a user