[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:
hedger
2022-05-06 16:37:10 +03:00
committed by GitHub
parent 1ca98170d9
commit 4d6b170769
461 changed files with 940 additions and 519 deletions

View File

@@ -13,4 +13,4 @@ void LfRfidDebugApp::run() {
scene_controller.add_scene(SceneType::Start, new LfRfidDebugAppSceneStart());
scene_controller.add_scene(SceneType::TuneScene, new LfRfidDebugAppSceneTune());
scene_controller.process(100);
}
}

View File

@@ -2,6 +2,7 @@
// app enter function
extern "C" int32_t lfrfid_debug_app(void* p) {
UNUSED(p);
LfRfidDebugApp* app = new LfRfidDebugApp();
app->run();
delete app;

View File

@@ -10,4 +10,4 @@ public:
private:
void submenu_callback(void* context, uint32_t index);
uint32_t submenu_item_selected = 0;
};
};

View File

@@ -2,10 +2,11 @@
#include <furi_hal.h>
static void comparator_trigger_callback(bool level, void* comp_ctx) {
UNUSED(comp_ctx);
furi_hal_gpio_write(&gpio_ext_pa7, !level);
}
void LfRfidDebugAppSceneTune::on_enter(LfRfidDebugApp* app, bool need_restore) {
void LfRfidDebugAppSceneTune::on_enter(LfRfidDebugApp* app, bool /* need_restore */) {
app->view_controller.switch_to<LfRfidViewTuneVM>();
furi_hal_gpio_init_simple(&gpio_ext_pa7, GpioModeOutputPushPull);
@@ -17,7 +18,7 @@ void LfRfidDebugAppSceneTune::on_enter(LfRfidDebugApp* app, bool need_restore) {
furi_hal_rfid_tim_read_start();
}
bool LfRfidDebugAppSceneTune::on_event(LfRfidDebugApp* app, LfRfidDebugApp::Event* event) {
bool LfRfidDebugAppSceneTune::on_event(LfRfidDebugApp* app, LfRfidDebugApp::Event* /* event */) {
bool consumed = false;
LfRfidViewTuneVM* tune = app->view_controller;
@@ -30,7 +31,7 @@ bool LfRfidDebugAppSceneTune::on_event(LfRfidDebugApp* app, LfRfidDebugApp::Even
return consumed;
}
void LfRfidDebugAppSceneTune::on_exit(LfRfidDebugApp* app) {
void LfRfidDebugAppSceneTune::on_exit(LfRfidDebugApp* /* app */) {
furi_hal_rfid_comp_stop();
furi_hal_rfid_comp_set_callback(NULL, NULL);

View File

@@ -6,4 +6,4 @@ public:
void on_enter(LfRfidDebugApp* app, bool need_restore) final;
bool on_event(LfRfidDebugApp* app, LfRfidDebugApp::Event* event) final;
void on_exit(LfRfidDebugApp* app) final;
};
};