From cadfb10b3befb22d71fd1f4f8f76c765d1a4412f Mon Sep 17 00:00:00 2001 From: srningap Date: Tue, 11 Apr 2023 19:43:51 +0530 Subject: [PATCH] removed cflags from gni, removed comments --- .../silabs/SiWx917/CHIPCryptoPALTinyCrypt.cpp | 15 --------------- third_party/silabs/SiWx917_sdk.gni | 8 -------- 2 files changed, 23 deletions(-) diff --git a/src/platform/silabs/SiWx917/CHIPCryptoPALTinyCrypt.cpp b/src/platform/silabs/SiWx917/CHIPCryptoPALTinyCrypt.cpp index 35f84b8c100648..4c897aa7c8e30c 100644 --- a/src/platform/silabs/SiWx917/CHIPCryptoPALTinyCrypt.cpp +++ b/src/platform/silabs/SiWx917/CHIPCryptoPALTinyCrypt.cpp @@ -863,13 +863,6 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::InitInternal(void) G = curve_G; return error; - -/* commenting since this exit is defined but not used -exit: - _log_mbedTLS_error(result); - Clear(); - return error; -*/ } void Spake2p_P256_SHA256_HKDF_HMAC::Clear() @@ -933,10 +926,6 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::FELoad(const uint8_t * in, size_t in_l uECC_vli_mmod((uECC_word_t *) fe, tmp, curve_n); -/* commenting since this exit is defined but not used - exit: - _log_mbedTLS_error(result); -*/ return error; } @@ -973,10 +962,6 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::FEMul(void * fer, const void * fe1, co uECC_vli_modMult((uECC_word_t *) fer, (const uECC_word_t *) fe1, (const uECC_word_t *) fe2, (const uECC_word_t *) curve_n); -/* commenting since this exit is defined but not used -exit: - _log_mbedTLS_error(result); -*/ return error; } diff --git a/third_party/silabs/SiWx917_sdk.gni b/third_party/silabs/SiWx917_sdk.gni index 57f9b29ff87db9..8c78007121b705 100644 --- a/third_party/silabs/SiWx917_sdk.gni +++ b/third_party/silabs/SiWx917_sdk.gni @@ -180,15 +180,7 @@ template("siwx917_sdk") { cflags += [ "-Wno-maybe-uninitialized", "-Wno-shadow", - "-Wno-empty-body", - "-Wno-cpp", - "-Wno-missing-braces", - "-Wno-sign-compare", "-Wno-error", - "-Wno-unknown-warning-option", - "-Wno-unused-variable", - "-Wno-implicit-function-declaration", - "-Wno-unused-function", ] if (defined(invoker.defines)) {