]> git.sur5r.net Git - openocd/commitdiff
Holger Schurig <hs4233@mail.mn-solutions.de> fix warnings
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 18 Feb 2009 07:39:20 +0000 (07:39 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 18 Feb 2009 07:39:20 +0000 (07:39 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1375 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/mflash.c
src/flash/pic32mx.c
src/helper/jim-eventloop.h
src/server/gdb_server.c
src/target/mips_m4k.c

index 340a9f5686cd955ee4ea3c7a83e3e7afa4c4980a..10830b25e6ee2e33fa03aa83eec94d4c46409ca7 100644 (file)
@@ -206,31 +206,6 @@ static int mflash_rst(u8 level)
        return mflash_bank->gpio_drv->set_gpio_output_val(mflash_bank->rst_pin, level);
 }
 
-static int mg_dump_task_reg (void)
-{
-       target_t *target = mflash_bank->target;
-       u32 address = mflash_bank->base + MG_REG_OFFSET + MG_REG_ERROR;
-       u8 value, i;
-       char *reg_name[9] = {
-               "error                  ",
-               "sector count           ",
-               "sector num (LBA  7- 0) ",
-               "cyl. low   (LBA 15- 8) ",
-               "cyl. high  (LBA 23-16) ",
-               "drv/head               ",
-               "status                 ",
-               "dev control            ",
-               "burst control          "
-       };
-
-       for (i = 0; i < 9; i++) {
-               target_read_u8(target, address + i * 2, &value);
-               LOG_INFO("%s : 0x%2.2x", reg_name[i], value);
-       }
-
-       return ERROR_OK;
-
-}
 static int mflash_init_gpio (void)
 {
        mflash_gpio_drv_t *gpio_drv = mflash_bank->gpio_drv;
index d9f71973f9d4c2dcdac242a99c51516ec8265005..7ae9eee245733568ed3f388c2b5fc65885c28572 100644 (file)
@@ -268,10 +268,12 @@ int pic32mx_protect(struct flash_bank_s *bank, int set, int first, int last)
 {
        pic32mx_flash_bank_t *pic32mx_info = NULL;
        target_t *target = bank->target;
+#if 0
        u16 prot_reg[4] = {0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF};
        int i, reg, bit;
        int status;
        u32 protection;
+#endif
 
        pic32mx_info = bank->driver_priv;
 
@@ -824,7 +826,9 @@ int pic32mx_handle_unlock_command(struct command_context_s *cmd_ctx, char *cmd,
 int pic32mx_chip_erase(struct flash_bank_s *bank)
 {
        target_t *target = bank->target;
+#if 0
        u32 status;
+#endif
 
        if (target->state != TARGET_HALTED)
        {
@@ -865,10 +869,10 @@ int pic32mx_chip_erase(struct flash_bank_s *bank)
 
 int pic32mx_handle_chip_erase_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
 {
+#if 0
        flash_bank_t *bank;
        int i;
 
-#if 0
        if (argc != 0)
        {
                command_print(cmd_ctx, "pic32mx chip_erase");
index 14887ac067ed3b9ceb00e488a24cdc8451e4730c..b927bc5bbb76e40a3e5b9a363f5d6271fb381c9c 100644 (file)
@@ -95,17 +95,6 @@ JIM_STATIC int JIM_API(Jim_ProcessEvents) (Jim_Interp *interp, int flags);
 #define JIM_GET_API(name) \
     Jim_GetApi(interp, "Jim_" #name, ((void *)&Jim_ ## name))
 
-#if defined(JIM_EXTENSION) || defined(JIM_EMBEDDED)
-/* This must be included "inline" inside the extension */
-static void Jim_ImportEventloopAPI(Jim_Interp *interp)
-{
-  JIM_GET_API(CreateFileHandler);
-  JIM_GET_API(DeleteFileHandler);
-  JIM_GET_API(CreateTimeHandler);
-  JIM_GET_API(DeleteTimeHandler);
-  JIM_GET_API(ProcessEvents);
-}
-#endif /* defined JIM_EXTENSION || defined JIM_EMBEDDED */
 #undef JIM_GET_API
 #endif /* __JIM_EVENTLOOP_CORE__ */
 
index eb612c7a9b88a2f0a074ad853541c3467dbc2341..aa213954d9a85299a2b91d46ac8b67ce7329bf2c 100644 (file)
@@ -600,7 +600,7 @@ int gdb_get_packet_inner(connection_t *connection, char *buffer, int *len)
 
 
 
-               int checksum_ok;
+               int checksum_ok = 0;
                /* explicit code expansion here to get faster inlined code in -O3 by not
                 * calculating checksum
                 */
index b1a4e46abeaed652c42dc7b049a14b1cf005202e..41b974ce5fdcf788ce59a4e7190c674095bb5303 100644 (file)
@@ -93,7 +93,7 @@ target_type_t mips_m4k_target =
 
 int mips_m4k_examine_debug_reason(target_t *target)
 {
-       int break_status;
+       u32 break_status;
        int retval;
 
        if ((target->debug_reason != DBG_REASON_DBGRQ)