diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-04-11 22:28:45 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-04-11 22:28:45 +0300 |
commit | 5caa3479c2efd31fca1b271db687e5e57c7de2d4 (patch) | |
tree | ad862f1b6620a5a376a67b4a320f23c212b45ef4 /contrib/isn | |
parent | 3c381a55b0fa1c4ca328211e39df8e1a715129cb (diff) | |
download | postgresql-5caa3479c2efd31fca1b271db687e5e57c7de2d4.tar.gz |
Clean up most -Wunused-but-set-variable warnings from gcc 4.6
This warning is new in gcc 4.6 and part of -Wall. This patch cleans
up most of the noise, but there are some still warnings that are
trickier to remove.
Diffstat (limited to 'contrib/isn')
-rw-r--r-- | contrib/isn/isn.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/isn/isn.c b/contrib/isn/isn.c index 46e904b1c4..b698cb00ff 100644 --- a/contrib/isn/isn.c +++ b/contrib/isn/isn.c @@ -341,8 +341,7 @@ ean2isn(ean13 ean, bool errorOK, ean13 *result, enum isn_type accept) enum isn_type type = INVALID; char buf[MAXEAN13LEN + 1]; - char *firstdig, - *aux; + char *aux; unsigned digval; unsigned search; ean13 ret = ean; @@ -354,7 +353,7 @@ ean2isn(ean13 ean, bool errorOK, ean13 *result, enum isn_type accept) /* convert the number */ search = 0; - firstdig = aux = buf + 13; + aux = buf + 13; *aux = '\0'; /* terminate string; aux points to last digit */ do { @@ -528,8 +527,7 @@ ean2string(ean13 ean, bool errorOK, char *result, bool shortType) const unsigned (*TABLE_index)[2]; enum isn_type type = INVALID; - char *firstdig, - *aux; + char *aux; unsigned digval; unsigned search; char valid = '\0'; /* was the number initially written with a @@ -546,7 +544,7 @@ ean2string(ean13 ean, bool errorOK, char *result, bool shortType) /* convert the number */ search = 0; - firstdig = aux = result + MAXEAN13LEN; + aux = result + MAXEAN13LEN; *aux = '\0'; /* terminate string; aux points to last digit */ *--aux = valid; /* append '!' for numbers with invalid but * corrected check digit */ |