diff --git a/src/adiv5_swdp.c b/src/adiv5_swdp.c index b53fcb5..e917d1f 100644 --- a/src/adiv5_swdp.c +++ b/src/adiv5_swdp.c @@ -117,7 +117,7 @@ static uint32_t adiv5_swdp_low_access(ADIv5_DP_t *dp, uint8_t RnW, bool APnDP = addr & ADIV5_APnDP; addr &= 0xff; uint8_t request = 0x81; - uint32_t response; + uint32_t response = 0; uint8_t ack; if(APnDP && dp->fault) return 0; diff --git a/src/nrf51.c b/src/nrf51.c index fec5afb..88e63f5 100644 --- a/src/nrf51.c +++ b/src/nrf51.c @@ -37,7 +37,7 @@ static bool nrf51_cmd_read_hwid(target *t); static bool nrf51_cmd_read_fwid(target *t); static bool nrf51_cmd_read_deviceid(target *t); static bool nrf51_cmd_read_deviceaddr(target *t); -static bool nrf51_cmd_read_help(); +static bool nrf51_cmd_read_help(void); static bool nrf51_cmd_read(target *t, int argc, const char *argv[]); const struct command_s nrf51_cmd_list[] = { @@ -308,7 +308,7 @@ static bool nrf51_cmd_read_deviceaddr(target *t) return true; } -static bool nrf51_cmd_read_help() +static bool nrf51_cmd_read_help(void) { const struct command_s *c; @@ -330,6 +330,6 @@ static bool nrf51_cmd_read(target *t, int argc, const char *argv[]) return !c->handler(t, argc - 1, &argv[1]); } - return nrf51_cmd_read_help(t); + return nrf51_cmd_read_help(); } diff --git a/src/stm32l0.c b/src/stm32l0.c index e46ac27..0c35577 100644 --- a/src/stm32l0.c +++ b/src/stm32l0.c @@ -104,7 +104,7 @@ static const struct command_s stm32lx_cmd_list[] = { "Manipulate option bytes"}, { "eeprom", (cmd_handler) stm32lx_cmd_eeprom, "Manipulate EEPROM(NVM data) memory"}, - { 0 }, + { NULL, NULL, NULL }, }; enum {