From 53e64c9f604c79c61fc68dba5630d31d5185d75a Mon Sep 17 00:00:00 2001 From: blevruz Date: Wed, 4 Jan 2023 09:42:12 +0100 Subject: [PATCH] fixes warnings --- lispBM/c_libs/vesc_c_if.h | 2 +- lispBM/lispif_c_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lispBM/c_libs/vesc_c_if.h b/lispBM/c_libs/vesc_c_if.h index 1caa2f7f..ec38b7b8 100755 --- a/lispBM/c_libs/vesc_c_if.h +++ b/lispBM/c_libs/vesc_c_if.h @@ -502,7 +502,7 @@ typedef struct { // NVM bool (*read_nvm_byte)(uint8_t *v, int address); bool (*write_nvm_byte)(uint8_t v, int address); - bool (*wipe_nvm)(); + bool (*wipe_nvm)(void); // Timeout void (*timeout_reset)(void); diff --git a/lispBM/lispif_c_lib.c b/lispBM/lispif_c_lib.c index 1cd05dbe..a8f31221 100644 --- a/lispBM/lispif_c_lib.c +++ b/lispBM/lispif_c_lib.c @@ -299,7 +299,7 @@ static bool if_write_nvm_byte(uint8_t v, int address) { } // wipes flash region 8 -static bool if_wipe_nvm() { +static bool if_wipe_nvm(void) { FLASH_Unlock(); FLASH_ClearFlag(FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);