From 36333f4a7226a585b7d3e18dcd4944f9e5bbc756 Mon Sep 17 00:00:00 2001 From: RogueMaster Date: Fri, 16 Sep 2022 19:57:26 -0400 Subject: [PATCH] fixes --- applications/plugins/tama_p1/tamalib/cpu.c | 2 ++ applications/plugins/tanksgame/tanks_game.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/plugins/tama_p1/tamalib/cpu.c b/applications/plugins/tama_p1/tamalib/cpu.c index 8cea7c45e..cde1a1c34 100644 --- a/applications/plugins/tama_p1/tamalib/cpu.c +++ b/applications/plugins/tama_p1/tamalib/cpu.c @@ -669,6 +669,7 @@ static void set_rq(u12_t rq, u4_t v) /* Instructions */ static void op_pset_cb(u8_t arg0, u8_t arg1) { + unused(arg1); np = arg0; } @@ -1477,6 +1478,7 @@ static void op_rrc_cb(u8_t arg0, u8_t arg1) static void op_inc_mn_cb(u8_t arg0, u8_t arg1) { + unused(arg1); u8_t tmp; tmp = M(arg0) + 1; diff --git a/applications/plugins/tanksgame/tanks_game.c b/applications/plugins/tanksgame/tanks_game.c index 47fa348c6..8a095dbb7 100644 --- a/applications/plugins/tanksgame/tanks_game.c +++ b/applications/plugins/tanksgame/tanks_game.c @@ -1181,7 +1181,7 @@ static void tanks_game_init_game(TanksState* const tanks_state, GameState type) static bool tanks_game_collision(Point const next_step, bool shoot, TanksState const* const tanks_state) { - if(next_step.x < 0 || next_step.y < 0) { + if((int8_t) next_step.x < 0 || (int8_t) next_step.y < 0) { return true; } @@ -1533,6 +1533,7 @@ static void tanks_game_process_game_step(TanksState* const tanks_state) { } int32_t tanks_game_app(void* p) { + unused(p); srand(DWT->CYCCNT); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(TanksEvent));