From 4654c9425ea34082445994aeb0c0e21697ee6b30 Mon Sep 17 00:00:00 2001 From: bsd Date: Tue, 16 Oct 2001 02:50:27 +0000 Subject: [PATCH] Fix an (non)exit. Silence a couple of compiler warnings. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@89 81a1dc3b-b13d-400b-aceb-764788c761c2 --- config_gram.y | 1 + main.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config_gram.y b/config_gram.y index d0a1de9a..5c1a8bbe 100644 --- a/config_gram.y +++ b/config_gram.y @@ -152,6 +152,7 @@ part_def : "%s: error at %s:%d: can't determine the number of bank address bits\n" " Are you sure num_banks (=%u) is correct?\n", progname, infile, lineno, current_part->mem[i].num_banks); + exit(1); } current_part->mem[i].bankaddrbits = pagebits; } diff --git a/main.c b/main.c index 7a9e431d..7880ece3 100644 --- a/main.c +++ b/main.c @@ -379,7 +379,7 @@ void verify_pin_assigned(int pin, char * desc) PROGRAMMER * locate_pinconfig(LISTID programmers, char * configid) { LNODEID ln1, ln2; - PROGRAMMER * p; + PROGRAMMER * p = NULL; char * id; int found; @@ -404,7 +404,7 @@ PROGRAMMER * locate_pinconfig(LISTID programmers, char * configid) AVRPART * locate_part(LISTID parts, char * partdesc) { LNODEID ln1; - AVRPART * p; + AVRPART * p = NULL; int found; found = 0;