From 9c999216b1601d762d4928b201bc7a9d8778f2aa Mon Sep 17 00:00:00 2001 From: mifi Date: Mon, 10 Dec 2007 19:46:04 +0000 Subject: - Fixing two compiler warnings - Reducing stack usage for recursive scripts - Do not exit on bogus arguments to reset_config. No longer exit the application upon bogus arguments to reset_config, but return errors. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thanks to Øyvind Harboe for these patches. git-svn-id: svn://svn.berlios.de/openocd/trunk@226 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/at91sam7.c | 2 +- src/flash/cfi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flash') diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c index 0115c18b..907302eb 100644 --- a/src/flash/at91sam7.c +++ b/src/flash/at91sam7.c @@ -674,7 +674,7 @@ int at91sam7_erase(struct flash_bank_s *bank, int first, int last) int at91sam7_protect(struct flash_bank_s *bank, int set, int first, int last) { - u32 cmd, pagen, status; + u32 cmd, pagen; u8 flashplane; int lockregion; diff --git a/src/flash/cfi.c b/src/flash/cfi.c index b952bb7f..ee99408e 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -2046,7 +2046,7 @@ int cfi_info(struct flash_bank_s *bank, char *buf, int buf_size) int printed; cfi_flash_bank_t *cfi_info = bank->driver_priv; - if (cfi_info->qry[0] == -1) + if (cfi_info->qry[0] == (char)-1) { printed = snprintf(buf, buf_size, "\ncfi flash bank not probed yet\n"); return ERROR_OK; -- cgit v1.2.3-18-g5258