From 6a771ddb9ba05a57ef3945a3db2debe0a5fba713 Mon Sep 17 00:00:00 2001 From: dhoerl Date: Mon, 12 Oct 2009 22:33:49 +0000 Subject: [PATCH] Small changes to remove warnings in avr32 code git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@871 81a1dc3b-b13d-400b-aceb-764788c761c2 --- jtagmkII.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jtagmkII.c b/jtagmkII.c index 4e1e4969..63f344e5 100644 --- a/jtagmkII.c +++ b/jtagmkII.c @@ -2972,7 +2972,7 @@ static int jtagmkII_chip_erase32(PROGRAMMER * pgm, AVRPART * p) { int status=0, loops; unsigned char *resp, buf[3], x, ret[4], *retP; - unsigned long val; + unsigned long val=0; unsigned int lineno; if(verbose) fprintf(stderr, @@ -2980,7 +2980,7 @@ static int jtagmkII_chip_erase32(PROGRAMMER * pgm, AVRPART * p) progname); status = jtagmkII_reset32(pgm, AVR32_RESET_CHIP_ERASE); - if(status != 0) goto eRR; + if(status != 0) {lineno = __LINE__; goto eRR;} // sequence of IR transitions ret[0] = 0x01; @@ -3318,7 +3318,7 @@ static int jtagmkII_paged_load32(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m, if(!(p->flags & AVRPART_WRITE)) { status = jtagmkII_reset32(pgm, AVR32_RESET_READ); - if(status != 0) goto eRR; + if(status != 0) {lineno = __LINE__; goto eRR;} } // Init SMC and set clocks @@ -3405,7 +3405,7 @@ static int jtagmkII_paged_write32(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m, if(n_bytes == 0) return -1; status = jtagmkII_reset32(pgm, AVR32_RESET_WRITE); - if(status != 0) goto eRR; + if(status != 0) {lineno = __LINE__; goto eRR;} p->flags |= AVRPART_WRITE; pages = (n_bytes-1)/page_size + 1;