[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>
This commit is contained in:
@@ -69,5 +69,5 @@ bool InfraredAppSceneAskBack::on_event(InfraredApp* app, InfraredAppEvent* event
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void InfraredAppSceneAskBack::on_exit(InfraredApp* app) {
|
||||
void InfraredAppSceneAskBack::on_exit(InfraredApp*) {
|
||||
}
|
||||
|
@@ -96,5 +96,5 @@ bool InfraredAppSceneEditDelete::on_event(InfraredApp* app, InfraredAppEvent* ev
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void InfraredAppSceneEditDelete::on_exit(InfraredApp* app) {
|
||||
void InfraredAppSceneEditDelete::on_exit(InfraredApp*) {
|
||||
}
|
||||
|
@@ -26,5 +26,5 @@ bool InfraredAppSceneEditRenameDone::on_event(InfraredApp* app, InfraredAppEvent
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void InfraredAppSceneEditRenameDone::on_exit(InfraredApp* app) {
|
||||
void InfraredAppSceneEditRenameDone::on_exit(InfraredApp*) {
|
||||
}
|
||||
|
@@ -56,5 +56,5 @@ bool InfraredAppSceneLearnEnterName::on_event(InfraredApp* app, InfraredAppEvent
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void InfraredAppSceneLearnEnterName::on_exit(InfraredApp* app) {
|
||||
void InfraredAppSceneLearnEnterName::on_exit(InfraredApp*) {
|
||||
}
|
||||
|
@@ -40,11 +40,9 @@ void InfraredAppSceneRemoteList::on_enter(InfraredApp* app) {
|
||||
}
|
||||
}
|
||||
|
||||
bool InfraredAppSceneRemoteList::on_event(InfraredApp* app, InfraredAppEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
return consumed;
|
||||
bool InfraredAppSceneRemoteList::on_event(InfraredApp*, InfraredAppEvent*) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void InfraredAppSceneRemoteList::on_exit(InfraredApp* app) {
|
||||
void InfraredAppSceneRemoteList::on_exit(InfraredApp*) {
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ static void infrared_progress_back_callback(void* context) {
|
||||
auto app = static_cast<InfraredApp*>(context);
|
||||
|
||||
InfraredAppEvent infrared_event = {
|
||||
.payload = {.dummy = 0},
|
||||
.type = InfraredAppEvent::Type::Back,
|
||||
};
|
||||
app->get_view_manager()->clear_events();
|
||||
@@ -57,7 +58,10 @@ bool InfraredAppSceneUniversalCommon::on_event(InfraredApp* app, InfraredAppEven
|
||||
if(event->type == InfraredAppEvent::Type::Tick) {
|
||||
auto view_manager = app->get_view_manager();
|
||||
app->notify_blink_send();
|
||||
InfraredAppEvent tick_event = {.type = InfraredAppEvent::Type::Tick};
|
||||
InfraredAppEvent tick_event = {
|
||||
.payload = {.dummy = 0},
|
||||
.type = InfraredAppEvent::Type::Tick,
|
||||
};
|
||||
view_manager->send_event(&tick_event);
|
||||
bool result = brute_force.send_next_bruteforce();
|
||||
if(result) {
|
||||
|
Reference in New Issue
Block a user