OPT = s
CSTANDARD = -std=gnu11
-CDEBUG =
+CDEBUG = -g
CWARN = -Wall -Wextra -Wstrict-prototypes -Wredundant-decls
-CTUNING = -funsigned-char -fshort-enums -funsigned-bitfields -fpack-struct
+CTUNING = -fshort-enums -funsigned-bitfields -fpack-struct
+#CTUNING += -funsigned-char
CTUNING += -mrelax -fno-common
CTUNING += -fno-move-loop-invariants
CTUNING += -fno-tree-loop-optimize
static vtparse_state_t state = STATE_GROUND;
char buf[CHB_SIZE+1];
uint8_t param[2];
- uint8_t i_buf;
+ uint8_t i_buf = 0;
uint8_t i_param;
int ch;
int_fast8_t verbosity = 0;
uint8_t default_stages;
uint32_t val;
- ERRNUM res = ESUCCESS;
/* get default values */
memcpy_P(&boot_param, cfboot, sizeof boot_param);
command_ret_t do_cpuchk(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc UNUSED, char * const argv[] UNUSED)
{
- uint_fast8_t cputype;
+ uint_fast8_t cputype = 0;
ERRNUM err = ESUCCESS;
uint8_t ram_save[cpuinfo_length];
command_ret_t do_bus_test(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc UNUSED, char * const argv[] UNUSED)
{
- char ch;
+ int ch;
#if 0
int opt;
}
} while ((Stat & S_IO_0X40) == 0);
- uint32_t cpu_freq;
+ uint32_t cpu_freq = 0;
if (!err)
cpu_freq = z80_measure_phi(lcycles);
/* print selected env vars */
while (optind < argc) {
- int rc = env_print(argv[optind], mode);
- if (rc < 0) {
+ int len = env_print(argv[optind], mode);
+ if (len < 0) {
printf_P(PSTR("## Error: \"%s\" not defined\n"), argv[optind]);
rc = CMD_RET_FAILURE;
}
msg_xmit(2, subf, sizeof(result_msg), result_msg);
if (rc) {
-#if GCC_BUG_61443
+#if defined(GCC_BUG_61443)
char msg[40];
strncpy_P(msg, rc_messages[rc & 0x7f], sizeof msg -1);
drv_debug(END, PSTR(" rc: %.02x/%d, '%s'"),
#define SPI_OFF() do { SPCR = 0; } while(0)
-static inline __attribute__((always_inline)) void spi_wait() {
+static inline __attribute__((always_inline)) void spi_wait(void) {
loop_until_bit_is_set(SPSR,SPIF);
}