[build] Suppress Wunused-but-set-var in openthread
This patch suppresses -Wunused-but-set-variable warning in
openthread third party code that does not comply with.
The code that causes the issues are as the following:
1)../../third_party/openthread/src/cli/cli.cpp:1813:18: error: variable
'i' set but not used
2)../../third_party/openthread/third_party/mbedtls/repo/library/bignum.c:1547:29:
error: variable 't' set but not used
3)../../third_party/openthread/src/core/thread/mle_router.cpp:2051:30:
error: variable 'storedCount' set but not used
Bug: 96410
Change-Id: I5aa510ca994de3b4caa24202454fcad3b6ac9a57
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/openthread/+/662984
Reviewed-by: Shai Barack <shayba@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 9d48779..512bfc4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -33,6 +33,7 @@
"-Wno-deprecated-copy",
"-Wno-implicit-fallthrough",
"-Wno-extra-semi",
+ "-Wno-unused-but-set-variable",
]
defines = []
if (openthread_config_file != "") {