From 1bcbcfaee1f60aceb831abedabe4732f24a84ff0 Mon Sep 17 00:00:00 2001 From: sreeramIfx <118491113+sreeramIfx@users.noreply.github.com> Date: Sat, 19 Nov 2022 08:15:38 -0800 Subject: [PATCH] [Infineon] Fix Warnings (#23673) --- examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp | 2 -- examples/lock-app/infineon/cyw30739/src/main.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp b/examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp index 7730b6ccf64f01..51279a8c80c104 100644 --- a/examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp +++ b/examples/lock-app/infineon/cyw30739/src/ButtonHandler.cpp @@ -75,7 +75,6 @@ void app_button_event_handler(const button_manager_button_t * button_mgr, button // state); bool initiated = false; LockManager::Action_t action; - int32_t actor; CHIP_ERROR err = CHIP_NO_ERROR; if (button_mgr[0].configuration->button == PLATFORM_BUTTON_1 && event == BUTTON_CLICK_EVENT && state == BUTTON_STATE_RELEASED) { @@ -87,7 +86,6 @@ void app_button_event_handler(const button_manager_button_t * button_mgr, button { action = LockManager::UNLOCK_ACTION; } - actor = AppEvent::kEventType_Button; } else { diff --git a/examples/lock-app/infineon/cyw30739/src/main.cpp b/examples/lock-app/infineon/cyw30739/src/main.cpp index 2ecd230fad5ce6..7483536fa4fe15 100644 --- a/examples/lock-app/infineon/cyw30739/src/main.cpp +++ b/examples/lock-app/infineon/cyw30739/src/main.cpp @@ -66,7 +66,6 @@ static FactoryDataProvider sFactoryDataProvider; static void InitApp(intptr_t args); static void ActionInitiated(LockManager::Action_t aAction, int32_t aActor); static void ActionCompleted(LockManager::Action_t aAction); -static void WriteClusterState(uint8_t value); static void UpdateClusterState(intptr_t context); #ifndef _countof