Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhedger <hedger@users.noreply.github.com>2022-05-06 16:37:10 +0300
committerGitHub <noreply@github.com>2022-05-06 16:37:10 +0300
commit4d6b170769a33711e62deaf1c2a6b3bdda37e665 (patch)
treeca65f2896946eaa4cec40f59e2a1817d8221e566 /applications/loader
parent1ca98170d9ea9ea49ce30046ce99ade01bd0ca08 (diff)
[FL-2520] FW build with -Wextra (#1185)
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/loader')
-rw-r--r--applications/loader/loader.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/loader/loader.c b/applications/loader/loader.c
index 43e275ab..e5d59702 100644
--- a/applications/loader/loader.c
+++ b/applications/loader/loader.c
@@ -39,6 +39,7 @@ static bool
}
static void loader_menu_callback(void* _ctx, uint32_t index) {
+ UNUSED(index);
const FlipperApplication* application = _ctx;
furi_assert(application->app);
@@ -53,6 +54,7 @@ static void loader_menu_callback(void* _ctx, uint32_t index) {
}
static void loader_submenu_callback(void* context, uint32_t index) {
+ UNUSED(index);
uint32_t view_id = (uint32_t)context;
view_dispatcher_switch_to_view(loader_instance->view_dispatcher, view_id);
}
@@ -101,6 +103,7 @@ const FlipperApplication* loader_find_application_by_name(const char* name) {
}
void loader_cli_open(Cli* cli, string_t args, Loader* instance) {
+ UNUSED(cli);
if(loader_is_locked(instance)) {
printf("Can't start, furi application is running");
return;
@@ -139,6 +142,9 @@ void loader_cli_open(Cli* cli, string_t args, Loader* instance) {
}
void loader_cli_list(Cli* cli, string_t args, Loader* instance) {
+ UNUSED(cli);
+ UNUSED(args);
+ UNUSED(instance);
printf("Applications:\r\n");
for(size_t i = 0; i < FLIPPER_APPS_COUNT; i++) {
printf("\t%s\r\n", FLIPPER_APPS[i].name);
@@ -187,6 +193,7 @@ static void loader_cli(Cli* cli, string_t args, void* _ctx) {
}
LoaderStatus loader_start(Loader* instance, const char* name, const char* args) {
+ UNUSED(instance);
furi_assert(name);
const FlipperApplication* application = loader_find_application_by_name(name);
@@ -265,6 +272,7 @@ static void loader_thread_state_callback(FuriThreadState thread_state, void* con
}
static uint32_t loader_hide_menu(void* context) {
+ UNUSED(context);
return VIEW_NONE;
}
@@ -445,6 +453,7 @@ void loader_update_menu() {
}
int32_t loader_srv(void* p) {
+ UNUSED(p);
FURI_LOG_I(TAG, "Executing system start hooks");
for(size_t i = 0; i < FLIPPER_ON_SYSTEM_START_COUNT; i++) {
FLIPPER_ON_SYSTEM_START[i]();