]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/cmd_cpu.c
Remove compiler warnings
[z180-stamp.git] / avr / cmd_cpu.c
index fd72b21f19408ea92e6137c56dd99c2fccfda63f..e5158fd705c11a2bc7a5ade6674f782552aca8a6 100644 (file)
@@ -405,7 +405,7 @@ static const FLASH char * const FLASH cpu_strings[] = {
 
 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];
 
@@ -490,7 +490,7 @@ command_ret_t do_cpu_test(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
 
 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;
@@ -655,7 +655,7 @@ command_ret_t do_cpu_freq(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
                }
        } while ((Stat & S_IO_0X40) == 0);
 
-       uint32_t cpu_freq;
+       uint32_t cpu_freq = 0;
        if (!err)
                cpu_freq = z80_measure_phi(lcycles);