Fix build warnings.

This commit is contained in:
Gareth McMullin 2016-04-18 12:25:48 -07:00
parent 2685906fc8
commit 294d93cfe3
3 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ static uint32_t adiv5_swdp_low_access(ADIv5_DP_t *dp, uint8_t RnW,
bool APnDP = addr & ADIV5_APnDP; bool APnDP = addr & ADIV5_APnDP;
addr &= 0xff; addr &= 0xff;
uint8_t request = 0x81; uint8_t request = 0x81;
uint32_t response; uint32_t response = 0;
uint8_t ack; uint8_t ack;
if(APnDP && dp->fault) return 0; if(APnDP && dp->fault) return 0;

View File

@ -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_fwid(target *t);
static bool nrf51_cmd_read_deviceid(target *t); static bool nrf51_cmd_read_deviceid(target *t);
static bool nrf51_cmd_read_deviceaddr(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[]); static bool nrf51_cmd_read(target *t, int argc, const char *argv[]);
const struct command_s nrf51_cmd_list[] = { const struct command_s nrf51_cmd_list[] = {
@ -308,7 +308,7 @@ static bool nrf51_cmd_read_deviceaddr(target *t)
return true; return true;
} }
static bool nrf51_cmd_read_help() static bool nrf51_cmd_read_help(void)
{ {
const struct command_s *c; 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 !c->handler(t, argc - 1, &argv[1]);
} }
return nrf51_cmd_read_help(t); return nrf51_cmd_read_help();
} }

View File

@ -104,7 +104,7 @@ static const struct command_s stm32lx_cmd_list[] = {
"Manipulate option bytes"}, "Manipulate option bytes"},
{ "eeprom", (cmd_handler) stm32lx_cmd_eeprom, { "eeprom", (cmd_handler) stm32lx_cmd_eeprom,
"Manipulate EEPROM(NVM data) memory"}, "Manipulate EEPROM(NVM data) memory"},
{ 0 }, { NULL, NULL, NULL },
}; };
enum { enum {